summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/pay.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-06-10 16:32:37 +0200
committerFlorian Dold <florian@dold.me>2021-06-10 16:32:37 +0200
commit8ad36d89f55783c34043ee9ef37759cd94bcec7c (patch)
tree1e638b45e59ef50985f799b57590032a57ac7049 /packages/taler-wallet-core/src/operations/pay.ts
parent7b7e3b4565169835ad04062d5c76ba655abd770a (diff)
downloadwallet-core-8ad36d89f55783c34043ee9ef37759cd94bcec7c.tar.gz
wallet-core-8ad36d89f55783c34043ee9ef37759cd94bcec7c.tar.bz2
wallet-core-8ad36d89f55783c34043ee9ef37759cd94bcec7c.zip
simplify pending transactions, make more tests pass again
Diffstat (limited to 'packages/taler-wallet-core/src/operations/pay.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/pay.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/pay.ts b/packages/taler-wallet-core/src/operations/pay.ts
index 9e23f6a17..cbb92dc86 100644
--- a/packages/taler-wallet-core/src/operations/pay.ts
+++ b/packages/taler-wallet-core/src/operations/pay.ts
@@ -468,7 +468,7 @@ async function recordConfirmPay(
const p = await tx.proposals.get(proposal.proposalId);
if (p) {
p.proposalStatus = ProposalStatus.ACCEPTED;
- p.lastError = undefined;
+ delete p.lastError;
p.retryInfo = initRetryInfo(false);
await tx.proposals.put(p);
}