taler-typescript-core

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

commit eda95a23f1407ab0d11864aa1232f1422211dc35
parent 013de4e8de29155bd10d9955cd990f05a9ad9f8d
Author: Florian Dold <dold@taler.net>
Date:   Wed, 22 Jul 2026 00:33:50 +0200

wallet: skip preset exchanges already applied

A preset whose version equals the recorded one had also been applied
before, but the comparison let it through, so the newest preset was
written back on every startup and reappeared after the user removed it.

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

diff --git a/packages/taler-wallet-core/src/preset-exchanges.ts b/packages/taler-wallet-core/src/preset-exchanges.ts @@ -92,7 +92,7 @@ export async function fillDefaults(wex: WalletExecutionContext): Promise<void> { appliedVersion = 0; } for (const exch of builtinExchanges) { - if (exch.versionAdded < appliedVersion) { + if (exch.versionAdded <= appliedVersion) { continue; } await putPresetExchangeEntry(