aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/withdraw.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-06-26 12:48:20 +0200
committerFlorian Dold <florian@dold.me>2023-06-26 12:48:20 +0200
commitfca893038dc61267c9861186041e129c88b46da8 (patch)
tree0f7603fca5f426551cf29e4cc6484bb0ae223491 /packages/taler-wallet-core/src/operations/withdraw.ts
parent66432cdd0588836000a8114e360aea537713712c (diff)
downloadwallet-core-fca893038dc61267c9861186041e129c88b46da8.tar.xz
wallet-core: fix deposit tx states, long-poll on kyc
Diffstat (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/withdraw.ts12
1 files changed, 1 insertions, 11 deletions
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts
index 28f4eeebb..8eb7f6457 100644
--- a/packages/taler-wallet-core/src/operations/withdraw.ts
+++ b/packages/taler-wallet-core/src/operations/withdraw.ts
@@ -1108,14 +1108,6 @@ async function processPlanchetVerifyAndStoreCoin(
wgContext.planchetsFinished.add(planchet.coinPub);
- // We create the notification here, as the async transaction below
- // allows other planchet withdrawals to change wgContext.planchetsFinished
- const notification: WalletNotification = {
- type: NotificationType.CoinWithdrawn,
- numTotal: wgContext.numPlanchets,
- numWithdrawn: wgContext.planchetsFinished.size,
- };
-
// Check if this is the first time that the whole
// withdrawal succeeded. If so, mark the withdrawal
// group as finished.
@@ -1138,9 +1130,7 @@ async function processPlanchetVerifyAndStoreCoin(
return true;
});
- if (firstSuccess) {
- ws.notify(notification);
- }
+ ws.notify({ type: NotificationType.BalanceChange });
}
/**