diff --git a/app/helpers/locations_helper.rb b/app/helpers/locations_helper.rb index 092776b23..128d9fc36 100644 --- a/app/helpers/locations_helper.rb +++ b/app/helpers/locations_helper.rb @@ -114,8 +114,8 @@ private sorted_linked_authorities.map { |linked_local_authority| formatted_start_date = linked_local_authority.start_date&.to_formatted_s(:govuk_date) - formatted_end_date = linked_local_authority.end_date&.to_formatted_s(:govuk_date) - "#{linked_local_authority[field]} (#{formatted_start_date} - #{formatted_end_date || 'present'})" + formatted_end_date = linked_local_authority.end_date&.to_formatted_s(:govuk_date) || "present" + "#{linked_local_authority[field]} (#{formatted_start_date} - #{formatted_end_date})" }.join("\n") end end