We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a3bb8b commit 66acec7Copy full SHA for 66acec7
1 file changed
app/controllers/api/v1/plans_controller.rb
@@ -141,7 +141,7 @@ def contributor_to_user(contributor:)
141
return user if user.present?
142
143
# If the user was not found, invite them and attach any know identifiers
144
- names = contributor.name.split
+ names = contributor.name&.split || [""]
145
firstname = names.length > 1 ? names.first : nil
146
surname = names.length > 1 ? names.last : names.first
147
user = User.invite!({ email: contributor.email,
0 commit comments