diff options
Diffstat (limited to 'packages/taler-wallet-core/src/balance.ts')
-rw-r--r-- | packages/taler-wallet-core/src/balance.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/balance.ts b/packages/taler-wallet-core/src/balance.ts index 700e2c5d7..e63ea6641 100644 --- a/packages/taler-wallet-core/src/balance.ts +++ b/packages/taler-wallet-core/src/balance.ts @@ -74,13 +74,13 @@ import { WalletDbReadOnlyTransaction, WithdrawalGroupStatus, } from "./db.js"; -import { InternalWalletState } from "./internal-wallet-state.js"; -import { assertUnreachable } from "./util/assertUnreachable.js"; -import { checkLogicInvariant } from "./util/invariants.js"; import { getExchangeScopeInfo, getExchangeWireDetailsInTx, } from "./exchanges.js"; +import { InternalWalletState } from "./internal-wallet-state.js"; +import { assertUnreachable } from "./util/assertUnreachable.js"; +import { checkLogicInvariant } from "./util/invariants.js"; /** * Logger. @@ -193,7 +193,7 @@ class BalancesStore { amount: AmountLike, ): Promise<void> { const b = await this.initBalance(currency, exchangeBaseUrl); - b.pendingIncoming = Amounts.add(b.available, amount).amount; + b.pendingIncoming = Amounts.add(b.pendingIncoming, amount).amount; } async setFlagIncomingAml( |