diff options
author | Florian Dold <florian@dold.me> | 2023-06-28 10:49:31 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-06-28 10:49:41 +0200 |
commit | 35ae9f2c22adcabd28747a1f2c4f21f51c732f42 (patch) | |
tree | 00f906371bb64ab6479d2fb203bf188e5da46b49 /packages/taler-wallet-core/src/operations/withdraw.ts | |
parent | 97a9e92d8b104a94c376ae4fad8c5c811f5ef7e1 (diff) | |
download | wallet-core-35ae9f2c22adcabd28747a1f2c4f21f51c732f42.tar.xz |
wallet-core: emit balance-change notifications, do less implicit background work
Diffstat (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/withdraw.ts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index d606e23dd..111a52882 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -62,7 +62,6 @@ import { ExchangeWithdrawResponse, WithdrawUriInfoResponse, ExchangeBatchWithdrawRequest, - WalletNotification, TransactionState, TransactionMajorState, TransactionMinorState, @@ -76,7 +75,6 @@ import { DenominationRecord, DenominationVerificationStatus, KycPendingInfo, - KycUserType, PlanchetRecord, PlanchetStatus, WalletStoresV1, @@ -108,11 +106,7 @@ import { readSuccessResponseJsonOrThrow, throwUnexpectedRequestError, } from "@gnu-taler/taler-util/http"; -import { - checkDbInvariant, - checkLogicInvariant, - InvariantViolatedError, -} from "../util/invariants.js"; +import { checkDbInvariant, checkLogicInvariant } from "../util/invariants.js"; import { DbAccess, GetReadOnlyAccess, @@ -1614,6 +1608,7 @@ async function processWithdrawalGroupPendingReady( } notifyTransition(ws, transactionId, res.transitionInfo); + ws.notify({ type: NotificationType.BalanceChange }); if (numPlanchetErrors > 0) { return { |