aboutsummaryrefslogtreecommitdiff
path: root/src/wallet-impl/history.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-12-06 00:24:34 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-12-06 00:24:34 +0100
commit65bccbd139c53a2baccec442a680373125488102 (patch)
tree216860ec3523af33091b8fb52193787034c667f8 /src/wallet-impl/history.ts
parent7b54439fd62bd2a5e15b3068a8fbaffeb0a57468 (diff)
downloadwallet-core-65bccbd139c53a2baccec442a680373125488102.tar.xz
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.ts4
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,
});