diff options
Diffstat (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/withdraw.ts | 12 |
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 }); } /** |