diff --git a/app/sidekiq/central_mail/submit_form4142_job.rb b/app/sidekiq/central_mail/submit_form4142_job.rb index 2c1b20386f7..9fa26428824 100644 --- a/app/sidekiq/central_mail/submit_form4142_job.rb +++ b/app/sidekiq/central_mail/submit_form4142_job.rb @@ -143,7 +143,7 @@ def generate_metadata metadata = { 'veteranFirstName' => vet_name[:first], 'veteranLastName' => vet_name[:last], - 'zipCode' => determine_zip, + 'zipCode' => submission.form.dig('form526', 'form526', 'veteran', 'currentMailingAddress', 'zipFirstFive'), 'source' => "Form526Submission va.gov", 'docType' => '4142', 'businessLine' => '', @@ -156,8 +156,8 @@ def generate_metadata def usa_based? country = ( - subission.form.dig('form526', 'form526', 'veteran', 'currentMailingAddress', 'country') || - subission.form.dig('form526', 'form526', 'veteran', 'mailingAddress', 'country') + submission.form.dig('form526', 'form526', 'veteran', 'currentMailingAddress', 'country') || + submission.form.dig('form526', 'form526', 'veteran', 'mailingAddress', 'country') ) raise VeteranCountryNotDefined if country.blank?