From 507701cce27a71f5b9c2ffc355dbfd5a64741f80 Mon Sep 17 00:00:00 2001 From: Fabrizio Date: Sun, 10 Jan 2021 12:02:56 +0100 Subject: [PATCH] [#176426698] fix format amount --- .../summary/textualSummary/ClosedTextualSummary.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ts/features/bonus/bpd/screens/details/components/summary/textualSummary/ClosedTextualSummary.tsx b/ts/features/bonus/bpd/screens/details/components/summary/textualSummary/ClosedTextualSummary.tsx index 5e97b00bbb7..b2ca4a6b8fc 100644 --- a/ts/features/bonus/bpd/screens/details/components/summary/textualSummary/ClosedTextualSummary.tsx +++ b/ts/features/bonus/bpd/screens/details/components/summary/textualSummary/ClosedTextualSummary.tsx @@ -4,6 +4,7 @@ import { Body } from "../../../../../../../../components/core/typography/Body"; import I18n from "../../../../../../../../i18n"; import { dateToAccessibilityReadableFormat } from "../../../../../../../../utils/accessibility"; import { localeDateFormat } from "../../../../../../../../utils/locale"; +import { formatNumberAmount } from "../../../../../../../../utils/stringBuilder"; import { BpdPeriod } from "../../../../../store/actions/periods"; import { isGracePeriod } from "../../../../../store/reducers/details/periods"; import { TextualSummary } from "./TextualSummary"; @@ -43,7 +44,7 @@ const KO = (props: Props) => ( "bonus.bpd.details.components.transactionsCountOverview.closedPeriodKOBody", { transactions: props.period.minTransactionNumber, - amount: props.period.amount.totalCashback + amount: formatNumberAmount(props.period.amount.totalCashback) } )} @@ -77,7 +78,7 @@ const OK = (props: Props) => ( "bonus.bpd.details.components.transactionsCountOverview.closedPeriodOKBody", { name: props.name, - amount: props.period.amount.totalCashback + amount: formatNumberAmount(props.period.amount.totalCashback) } )} {/* If the max amount is reached, inform the user */}