From e12472f2aa79f87b942115285b2778df92f8e9e6 Mon Sep 17 00:00:00 2001 From: Jonni Date: Fri, 22 Nov 2024 15:20:39 +0000 Subject: [PATCH] fix: bughunt to feature-deploy --- .../confirmationSection/confirmationMultiField.ts | 1 + libs/application/templates/financial-aid/src/lib/utils.ts | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/application/templates/financial-aid/src/forms/ApplicationForm/confirmationSection/confirmationMultiField.ts b/libs/application/templates/financial-aid/src/forms/ApplicationForm/confirmationSection/confirmationMultiField.ts index 452acf7b3bfa..62ffb32d8cf6 100644 --- a/libs/application/templates/financial-aid/src/forms/ApplicationForm/confirmationSection/confirmationMultiField.ts +++ b/libs/application/templates/financial-aid/src/forms/ApplicationForm/confirmationSection/confirmationMultiField.ts @@ -26,6 +26,7 @@ export const confirmationMultiField = buildMultiField({ title: m.confirmation.alertMessagesInRelationship.success, alertType: 'success', condition: (answers) => { + console.log('!!!Hér: ', answers) return !hasIncomeFiles(answers) }, }), diff --git a/libs/application/templates/financial-aid/src/lib/utils.ts b/libs/application/templates/financial-aid/src/lib/utils.ts index c4e3afe6080d..1236cb3509fd 100644 --- a/libs/application/templates/financial-aid/src/lib/utils.ts +++ b/libs/application/templates/financial-aid/src/lib/utils.ts @@ -167,9 +167,9 @@ type File = { key: string } -export const hasIncomeFiles = (formValue: FormValue) => { - const income = formValue.income === ApproveOptions.Yes - const incomeFiles = formValue.incomeFiles as Array +export const hasIncomeFiles = (answers: FormValue) => { + const income = answers.income === ApproveOptions.Yes + const incomeFiles = answers.incomeFiles as Array return income && incomeFiles && incomeFiles.length > 0 }