diff --git a/app/services/user_updater.rb b/app/services/user_updater.rb index b36309575a2..0203637e8dd 100644 --- a/app/services/user_updater.rb +++ b/app/services/user_updater.rb @@ -66,7 +66,8 @@ class UserUpdater user_profile.send("#{attribute}=", attributes[attribute]) end - if fields = attributes[:custom_fields] && fields.present? + fields = attributes[:custom_fields] + if fields.present? user.custom_fields = fields end