From fca893038dc61267c9861186041e129c88b46da8 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 26 Jun 2023 12:48:20 +0200 Subject: wallet-core: fix deposit tx states, long-poll on kyc --- packages/taler-wallet-core/src/operations/withdraw.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts') 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 }); } /** -- cgit v1.2.3