Skip to content

Commit

Permalink
Corrects disability index
Browse files Browse the repository at this point in the history
  • Loading branch information
stiehlrod committed Sep 5, 2024
1 parent fa0c304 commit 0f2adde
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 0f2adde

Please sign in to comment.