diff --git a/modules/ivc_champva/app/models/ivc_champva/vha_10_10d.rb b/modules/ivc_champva/app/models/ivc_champva/vha_10_10d.rb index c1a3bac1e99..2847bc20e0f 100644 --- a/modules/ivc_champva/app/models/ivc_champva/vha_10_10d.rb +++ b/modules/ivc_champva/app/models/ivc_champva/vha_10_10d.rb @@ -107,13 +107,18 @@ def initial_stamps def applicant_stamps stamps = [] applicants = @data.fetch('applicants', []) + applicants.each_with_index do |applicant, index| next if index.zero? coords_y = 470 - (116 * index) applicant_country = applicant.dig('applicant_address', 'country') - stamps << { coords: [520, coords_y], text: applicant_country, page: 0 } if applicant_country + + if applicant_country && stamps.count { |stamp| stamp[:text] == applicant_country } < 2 + stamps << { coords: [520, coords_y], text: applicant_country, page: 0 } + end end + stamps end end