Skip to content

Commit

Permalink
Adds return in case the reservesNationalGuardService is not provided.
Browse files Browse the repository at this point in the history
  • Loading branch information
stiehlrod committed Nov 6, 2024
1 parent 99f4d08 commit 44b90e8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ def validate_form_526_title10_anticipated_separation_date!
end

def transform_form_526_unit_name!
return if form_attributes&.dig('serviceInformation', 'reservesNationalGuardService').nil?

unit_name = form_attributes&.dig('serviceInformation', 'reservesNationalGuardService', 'unitName')
unit_name = ' ' if unit_name&.blank? || unit_name&.empty?
form_attributes['serviceInformation']['reservesNationalGuardService']['unitName'] = unit_name
Expand Down

0 comments on commit 44b90e8

Please sign in to comment.