Skip to content

Commit

Permalink
feat(Bonus Pagamenti Digitali): [#176426698] Fix format amount #2692
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziofff authored Jan 10, 2021
1 parent 05aa1fc commit 543d63c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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)
}
)}
</Body>
Expand Down Expand Up @@ -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 */}
Expand Down

0 comments on commit 543d63c

Please sign in to comment.