taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 400877b95413821e703914b630f1e67431fedf2e
parent 60eed9da67797c8b1856702fbafda8e821c0c65a
Author: Florian Dold <dold@taler.net>
Date:   Wed, 22 Jul 2026 00:30:07 +0200

wallet: assign the outer denomOkay when redenominating a withdrawal

The inner declaration shadowed the flag the check below reads, so that
check always took the not-okay branch: every denomination was recorded a
second time as fully skipped and its planchets were aborted, even when
the denomination was still withdrawable.

Diffstat:
Mpackages/taler-wallet-core/src/withdraw.ts | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/taler-wallet-core/src/withdraw.ts b/packages/taler-wallet-core/src/withdraw.ts @@ -2357,7 +2357,7 @@ async function redenominateWithdrawal( let denomOkay: boolean = false; if (denom != null) { - const denomOkay = isWithdrawableDenom(denom); + denomOkay = isWithdrawableDenom(denom); const numCoins = sel.count - (sel.skip ?? 0); const denomValue = Amount.from(denom.value).mult(numCoins);