Skip to content

Commit

Permalink
Merge pull request #6674 from alphagov/prevent-unhandled-exception-in…
Browse files Browse the repository at this point in the history
…-overseas-passports-embassies-view

Handle embassies with no contact numbers
  • Loading branch information
mtaylorgds authored Feb 9, 2024
2 parents a15a960 + d039f9c commit 4daae0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/flows/shared/_overseas_passports_embassies.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $A
$A

$C
<% embassy["contact_numbers"].each do |contact| %>
<% embassy["contact_numbers"]&.each do |contact| %>
<%# Some labels have a trailing :, some don't %>
<%= contact["label"].sub(/:\s*\z/, '') %>: <%= contact["number"] %>
<% end %>
Expand Down

0 comments on commit 4daae0e

Please sign in to comment.