diff options
Diffstat (limited to 'app/services/application_settings/update_service.rb')
-rw-r--r-- | app/services/application_settings/update_service.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/services/application_settings/update_service.rb b/app/services/application_settings/update_service.rb index 7728982779e..0f2099793ea 100644 --- a/app/services/application_settings/update_service.rb +++ b/app/services/application_settings/update_service.rb @@ -67,10 +67,8 @@ module ApplicationSettings end def update_terms(terms) - return unless terms.present? - # Avoid creating a new terms record if the text is exactly the same. - terms = terms.strip + terms = terms&.strip return if terms == @application_setting.terms ApplicationSetting::Term.create(terms: terms) |