From 31bc3f8aaf7a55826be2e23d594c81183d34fdcf Mon Sep 17 00:00:00 2001 From: 2s2e Date: Thu, 15 Feb 2024 17:06:05 -0800 Subject: [PATCH] Fixed issue with null values in age array --- frontend/src/app/vsr/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/vsr/page.tsx b/frontend/src/app/vsr/page.tsx index 82cc6a7..c595748 100644 --- a/frontend/src/app/vsr/page.tsx +++ b/frontend/src/app/vsr/page.tsx @@ -99,7 +99,7 @@ const VeteranServiceRequest: React.FC = () => { age: data.age, maritalStatus: data.marital_status, spouseName: data.spouse, - agesOfBoys: data.ages_of_boys, + agesOfBoys: data.ages_of_boys.slice(0, data.num_boys), ethnicity: finalEthnicity, employmentStatus: data.employment_status, incomeLevel: data.income_level,