diff --git a/src/pages/iban.tsx b/src/pages/iban.tsx index ad6149ad..8287c2d0 100644 --- a/src/pages/iban.tsx +++ b/src/pages/iban.tsx @@ -23,35 +23,37 @@ const Iban: Page = ({ previousRoute, nextRoute, }) => { - const danovyBonus = Number(taxForm.r121) - const danovyBonusUroky = Number(taxForm.r127) - const danovyPreplatok = Number(taxForm.r136_danovy_preplatok) - const spolu = danovyBonus + danovyBonusUroky + danovyPreplatok + const danovyBonus = taxForm.r121 + const danovyBonusUroky = taxForm.r127 + const danovyPreplatok = taxForm.r136_danovy_preplatok + const spolu = danovyBonus + .plus(danovyBonusUroky) + .plus(danovyPreplatok) const Preplatky = (
{taxForm.mozeZiadatVyplatitDanovyBonus && (
Daňový bonus: -

{formatCurrency(danovyBonus)}

+

{formatCurrency(danovyBonus.toNumber())}

)} {taxForm.mozeZiadatVratitDanovyBonusUroky && (
Daňový bonus na zaplatené úroky: -

{formatCurrency(danovyBonusUroky)}

+

{formatCurrency(danovyBonusUroky.toNumber())}

)} {taxForm.mozeZiadatVratitDanovyPreplatok && (
Daňový preplatok: -

{formatCurrency(danovyPreplatok)}

+

{formatCurrency(danovyPreplatok.toNumber())}

)} {taxForm.mozeZiadatVratitPreplatkyBonusyUroky && (
Spolu: -

{formatCurrency(spolu)}

+

{formatCurrency(spolu.toNumber())}

)}