diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-04-27 21:11:20 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-04-27 21:11:20 +0530 |
commit | 5be0708a10874be939e63ca82082cd665165823c (patch) | |
tree | d67531e204513905ffe90b7874baead3afe50305 /src/operations/history.ts | |
parent | e404f5e6d3001906c11b82a532db518720caebfd (diff) | |
download | wallet-core-5be0708a10874be939e63ca82082cd665165823c.tar.gz wallet-core-5be0708a10874be939e63ca82082cd665165823c.tar.bz2 wallet-core-5be0708a10874be939e63ca82082cd665165823c.zip |
adopt new merchant refund API
Diffstat (limited to 'src/operations/history.ts')
-rw-r--r-- | src/operations/history.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/operations/history.ts b/src/operations/history.ts index efbfbf377..f32dbbe2d 100644 --- a/src/operations/history.ts +++ b/src/operations/history.ts @@ -453,8 +453,8 @@ export async function getHistory( let amountRefundedRaw = Amounts.getZero(purchaseAmount.currency); let amountRefundedInvalid = Amounts.getZero(purchaseAmount.currency); let amountRefundedEffective = Amounts.getZero(purchaseAmount.currency); - Object.keys(purchase.refundState.refundsDone).forEach((x, i) => { - const r = purchase.refundState.refundsDone[x]; + Object.keys(purchase.refundsDone).forEach((x, i) => { + const r = purchase.refundsDone[x]; if (r.refundGroupId !== re.refundGroupId) { return; } @@ -471,8 +471,8 @@ export async function getHistory( refundFee, ).amount; }); - Object.keys(purchase.refundState.refundsFailed).forEach((x, i) => { - const r = purchase.refundState.refundsFailed[x]; + Object.keys(purchase.refundsFailed).forEach((x, i) => { + const r = purchase.refundsFailed[x]; if (r.refundGroupId !== re.refundGroupId) { return; } |