aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/withdraw.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-11-06 14:22:44 -0300
committerSebastian <sebasjm@gmail.com>2023-11-06 14:22:44 -0300
commit35369bdc722780eab5e9cd08703cf72d718b0dba (patch)
treec97583d4f8ba061f05882cc850213dc46ec85400 /packages/taler-wallet-core/src/operations/withdraw.ts
parent78b9f3e4d94af915c7f4480519e937fa5dacf620 (diff)
downloadwallet-core-35369bdc722780eab5e9cd08703cf72d718b0dba.tar.xz
when planchet is complete, clean lastError
Diffstat (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/withdraw.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts
index b0d7706a3..3600fcf22 100644
--- a/packages/taler-wallet-core/src/operations/withdraw.ts
+++ b/packages/taler-wallet-core/src/operations/withdraw.ts
@@ -1098,6 +1098,7 @@ async function processPlanchetVerifyAndStoreCoin(
return false;
}
p.planchetStatus = PlanchetStatus.WithdrawalDone;
+ p.lastError = undefined
await tx.planchets.put(p);
await makeCoinAvailable(ws, tx, coin);
return true;