Browse Source

Update app/helpers/locations_helper.rb

Co-authored-by: James Rose <james@jbpr.net>
pull/1402/head
Kat 3 years ago
parent
commit
32f85c6803
  1. 4
      app/helpers/locations_helper.rb

4
app/helpers/locations_helper.rb

@ -114,8 +114,8 @@ private
sorted_linked_authorities.map { |linked_local_authority| sorted_linked_authorities.map { |linked_local_authority|
formatted_start_date = linked_local_authority.start_date&.to_formatted_s(:govuk_date) 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) formatted_end_date = linked_local_authority.end_date&.to_formatted_s(:govuk_date) || "present"
"#{linked_local_authority[field]} (#{formatted_start_date} - #{formatted_end_date || 'present'})" "#{linked_local_authority[field]} (#{formatted_start_date} - #{formatted_end_date})"
}.join("\n") }.join("\n")
end end
end end

Loading…
Cancel
Save