diff --git a/app/models/lettings_log.rb b/app/models/lettings_log.rb index f27b73ba7..42fa5853c 100644 --- a/app/models/lettings_log.rb +++ b/app/models/lettings_log.rb @@ -657,7 +657,7 @@ private end def upcase_and_remove_whitespace(string) - string&.upcase&.gsub(/\s+/, "") + string.present? ? string.upcase.gsub(/\s+/, "") : string end def fully_wheelchair_accessible?