From c2842141dd66fbdea339c70fb8efa1ecf7a0c681 Mon Sep 17 00:00:00 2001 From: Sampo Tawast <5328394+sirtawast@users.noreply.github.com> Date: Wed, 9 Oct 2024 14:47:34 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20benefit=20calculation=20amount=20in=20de?= =?UTF-8?q?cision=20summary=20was=200,00=20=E2=82=AC=20(#3415)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/applications/pageContent/PageContent.tsx | 3 ++- .../applicationReview/handlingView/HandlingStep1.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/benefit/applicant/src/components/applications/pageContent/PageContent.tsx b/frontend/benefit/applicant/src/components/applications/pageContent/PageContent.tsx index 822763d2cb..96149620a3 100644 --- a/frontend/benefit/applicant/src/components/applications/pageContent/PageContent.tsx +++ b/frontend/benefit/applicant/src/components/applications/pageContent/PageContent.tsx @@ -105,7 +105,8 @@ const PageContent: React.FC = () => { key: 'status', }, { - accessor: (app) => formatFloatToCurrency(app.calculatedBenefitAmount), + accessor: (app) => + formatFloatToCurrency(app?.calculation?.calculatedBenefitAmount), key: 'benefitAmount', showIf: () => showMonetaryFields, }, diff --git a/frontend/benefit/handler/src/components/applicationReview/handlingView/HandlingStep1.tsx b/frontend/benefit/handler/src/components/applicationReview/handlingView/HandlingStep1.tsx index b1cbe10c0e..e76dbb953a 100644 --- a/frontend/benefit/handler/src/components/applicationReview/handlingView/HandlingStep1.tsx +++ b/frontend/benefit/handler/src/components/applicationReview/handlingView/HandlingStep1.tsx @@ -77,7 +77,8 @@ const HandlingStep1: React.FC = ({ key: 'status', }, { - accessor: (app) => formatFloatToCurrency(app.calculatedBenefitAmount), + accessor: (app) => + formatFloatToCurrency(app.calculation?.calculatedBenefitAmount), key: 'benefitAmount', showIf: () => showMonetaryFields, },