diff --git a/modules/claims_api/app/controllers/concerns/claims_api/v2/disability_compensation_validation.rb b/modules/claims_api/app/controllers/concerns/claims_api/v2/disability_compensation_validation.rb index cf50f9dcd9d..22b34ce71b2 100644 --- a/modules/claims_api/app/controllers/concerns/claims_api/v2/disability_compensation_validation.rb +++ b/modules/claims_api/app/controllers/concerns/claims_api/v2/disability_compensation_validation.rb @@ -316,7 +316,7 @@ def validate_form_526_disability_secondary_disabilities # rubocop:disable Metric form_attributes['disabilities'].each_with_index do |disability, dis_idx| if disability['disabilityActionType'] == 'NONE' && disability['secondaryDisabilities'].blank? collect_error_messages(source: "disabilities/#{dis_idx}/", - detail: "If the `disabilityActionType` (#{idx}) is set to `NONE` " \ + detail: "If the `disabilityActionType` (#{dis_idx}) is set to `NONE` " \ 'there must be a secondary disability present.') end next if disability['secondaryDisabilities'].blank?