From 72b7aec1b15d1a4d290c510950cbb97f7520c42d Mon Sep 17 00:00:00 2001 From: Michael Clement Date: Fri, 6 Sep 2024 13:54:23 -0500 Subject: [PATCH] updated to use join in case of nil values (#18351) --- modules/ivc_champva/app/form_mappings/vha_10_7959f_1.json.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ivc_champva/app/form_mappings/vha_10_7959f_1.json.erb b/modules/ivc_champva/app/form_mappings/vha_10_7959f_1.json.erb index 3b5816e023d..687da949fb7 100644 --- a/modules/ivc_champva/app/form_mappings/vha_10_7959f_1.json.erb +++ b/modules/ivc_champva/app/form_mappings/vha_10_7959f_1.json.erb @@ -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') %>",