Skip to content

Commit 22d317b

Browse files
authored
Merge pull request #59 from Y-Note-SAS/fix-formatAmount
fix: formatAmount
2 parents d5dc717 + 70f4367 commit 22d317b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/ContributionSearcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class ContributionSearcher extends Component {
154154
const formatters = [
155155
c => formatDateFromISO(this.props.modulesManager, this.props.intl, c.payDate),
156156
c => c.payer?.name ?? "",
157-
c => formatAmount(this.props.intl, c.amount),
157+
c => formatAmount(this.props.modulesManager, this.props.intl, c.amount),
158158
c => <PublishedComponent
159159
readOnly={true}
160160
pubRef="contribution.PremiumPaymentTypePicker" withLabel={false} value={c.payType}

src/components/PoliciesPremiumsOverview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ class PoliciesPremiumsOverview extends PagedDataHandler {
216216
readOnly={true}
217217
pubRef="payer.PayerPicker" withLabel={false} value={p.payer}
218218
/>,
219-
p => formatAmount(this.props.intl, p.amount),
219+
p => formatAmount(this.props.modulesManager, this.props.intl, p.amount),
220220
p => <PublishedComponent
221221
readOnly={true}
222222
pubRef="contribution.PremiumPaymentTypePicker" withLabel={false} value={p.payType}

0 commit comments

Comments
 (0)