diff options
author | Sebastian <sebasjm@gmail.com> | 2022-11-04 10:58:13 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-11-04 11:56:05 -0300 |
commit | 80ab8ccce9a9ce46b445d0857769aadd640073a3 (patch) | |
tree | 195492f53138f57c1268b9ffd9062ea2d3ae9570 /packages/merchant-backoffice-ui/src/paths/instance/orders/details/DetailPage.tsx | |
parent | 50e51429ee82190f3c60157a84f13d473d34cb49 (diff) | |
download | wallet-core-80ab8ccce9a9ce46b445d0857769aadd640073a3.tar.xz |
upgrade amount api
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/instance/orders/details/DetailPage.tsx')
-rw-r--r-- | packages/merchant-backoffice-ui/src/paths/instance/orders/details/DetailPage.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/orders/details/DetailPage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/orders/details/DetailPage.tsx index 0aac9ded0..3445a86df 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/orders/details/DetailPage.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/orders/details/DetailPage.tsx @@ -432,7 +432,7 @@ function PaidPage({ const refund_taken = order.refund_details.reduce((prev, cur) => { if (cur.pending) return prev; return Amounts.add(prev, Amounts.parseOrThrow(cur.amount)).amount; - }, Amounts.getZero(amount.currency)); + }, Amounts.zeroOfCurrency(amount.currency)); value.refund_taken = Amounts.stringify(refund_taken); return ( |