Skip to content

Commit f6c45f3

Browse files
committed
Use notary_public_inclusion
Remove duplication by using `notary_public_inclusion` instead of `cni_notary_public_countries.include?(calculator.ceremony_country`.
1 parent ef9297f commit f6c45f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/smart_answer_flows/marriage-abroad/outcomes/outcome_os_consular_cni.govspeak.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@
263263
<% if calculator.partner_is_same_sex? ||
264264
(
265265
no_document_download_link_if_os_resident_of_uk_countries.exclude?(calculator.ceremony_country) &&
266-
(cni_notary_public_countries + %w(macedonia)).include?(calculator.ceremony_country) &&
266+
(notary_public_inclusion || %w(macedonia).include?(calculator.ceremony_country)) &&
267267
%w(greece tunisia).exclude?(calculator.ceremony_country)
268268
) %>
269269
<%= render partial: 'download_and_fill_notice_and_affidavit_but_not_sign.govspeak.erb' %>
@@ -319,7 +319,7 @@
319319

320320
[Make an appointment to collect your CNI at the embassy in Athens](https://www.consular-appointments.service.gov.uk/fco/#!/british-embassy-athens/certificate-of-no-impediment/slot_picker).
321321

322-
<% elsif cni_notary_public_countries.include?(calculator.ceremony_country) %>
322+
<% elsif notary_public_inclusion %>
323323
###What happens next
324324

325325
The embassy or notary public will charge a fee for taking the oath.

0 commit comments

Comments
 (0)