Skip to content

Commit

Permalink
fix: benefit calculation amount in decision summary was 0,00 € (#3415)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast authored Oct 9, 2024
1 parent 0a54fd3 commit c284214
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ const HandlingStep1: React.FC<HandlingStepProps> = ({
key: 'status',
},
{
accessor: (app) => formatFloatToCurrency(app.calculatedBenefitAmount),
accessor: (app) =>
formatFloatToCurrency(app.calculation?.calculatedBenefitAmount),
key: 'benefitAmount',
showIf: () => showMonetaryFields,
},
Expand Down

0 comments on commit c284214

Please sign in to comment.