Skip to content

Commit

Permalink
updated to use join in case of nil values (#18351)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelclement authored Sep 6, 2024
1 parent 50c2778 commit 72b7aec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"form1[0].#subform[0].VetLastName[0]": "<%= form.data.dig('veteran', 'full_name', 'last') + ' ' + form.data.dig('veteran', 'full_name', 'suffix') %>",
"form1[0].#subform[0].VetLastName[0]": "<%= [form.data.dig('veteran', 'full_name', 'last'), form.data.dig('veteran', 'full_name', 'suffix')].join(' ') %>",
"form1[0].#subform[0].VetFirstName[0]": "<%= form.data.dig('veteran', 'full_name', 'first') %>",
"form1[0].#subform[0].MiddleInitials[0]": "<%= form.data.dig('veteran', 'full_name', 'middle')&.first %>",
"form1[0].#subform[0].SocialSecurityNumber[0]": "<%= form.data.dig('veteran', 'ssn') %>",
Expand Down

0 comments on commit 72b7aec

Please sign in to comment.