Skip to content

Commit

Permalink
Cleans up branch
Browse files Browse the repository at this point in the history
  • Loading branch information
stiehlrod committed Sep 5, 2024
1 parent 2216b15 commit fa0c304
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def validate_form_526_change_of_address_country

collect_error_messages(
source: '/changeOfAddress/country',
detail: 'The country provided is not a valid.'
detail: 'The country provided is not valid.'
)
end

Expand Down Expand Up @@ -193,6 +193,11 @@ def validate_form_526_current_mailing_address_zip
source: '/veteranIdentification/mailingAddress/zipFirstFive',
detail: 'The zipFirstFive is required if the country is USA.'
)
elsif mailing_address['country'] != 'USA' && mailing_address['internationalPostalCode'].blank?
collect_error_messages(
source: '/veteranIdentification/mailingAddress/internationalPostalCode',
detail: 'The internationalPostalCode is required if the country is not USA.'
)
elsif mailing_address['country'] == 'USA' && mailing_address['internationalPostalCode'].present?
collect_error_messages(
source: '/veteranIdentification/mailingAddress/internationalPostalCode',
Expand Down

0 comments on commit fa0c304

Please sign in to comment.