diff --git a/app/services/user_updater.rb b/app/services/user_updater.rb index e7136f74e..747ce7d15 100644 --- a/app/services/user_updater.rb +++ b/app/services/user_updater.rb @@ -34,7 +34,7 @@ class UserUpdater def update(attributes = {}) user_profile = user.user_profile - user_profile.location = attributes[:location] + user_profile.location = attributes.fetch(:location) { user_profile.location } user_profile.dismissed_banner_key = attributes[:dismissed_banner_key] if attributes[:dismissed_banner_key].present? user_profile.website = format_url(attributes.fetch(:website) { user_profile.website }) user_profile.bio_raw = attributes.fetch(:bio_raw) { user_profile.bio_raw }