diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-06 00:24:34 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-06 00:24:34 +0100 |
commit | 65bccbd139c53a2baccec442a680373125488102 (patch) | |
tree | 216860ec3523af33091b8fb52193787034c667f8 /src/wallet-impl/history.ts | |
parent | 7b54439fd62bd2a5e15b3068a8fbaffeb0a57468 (diff) |
separate operations for pay, refund status query and refund submission
Diffstat (limited to 'src/wallet-impl/history.ts')
-rw-r--r-- | src/wallet-impl/history.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet-impl/history.ts b/src/wallet-impl/history.ts index 5e93ab878..23887e895 100644 --- a/src/wallet-impl/history.ts +++ b/src/wallet-impl/history.ts @@ -82,7 +82,7 @@ export async function getHistory( type: "pay", explicit: false, }); - if (p.lastRefundTimestamp) { + if (p.lastRefundStatusTimestamp) { const contractAmount = Amounts.parseOrThrow(p.contractTerms.amount); const amountsPending = Object.keys(p.refundsPending).map(x => Amounts.parseOrThrow(p.refundsPending[x].refund_amount), @@ -103,7 +103,7 @@ export async function getHistory( merchantName: p.contractTerms.merchant.name, refundAmount: amount, }, - timestamp: p.lastRefundTimestamp, + timestamp: p.lastRefundStatusTimestamp, type: "refund", explicit: false, }); |