commit bf865595dca1604d32968db93ca57b4b4ade7140 parent 0757c90380cc6b8dda161ece39ff13f8ef05ef7f Author: Sebastian <sebasjm@taler-systems.com> Date: Thu, 11 Jun 2026 11:44:43 -0300 fix #11512 Diffstat:
| M | packages/taler-wallet-webextension/src/cta/Withdraw/state.ts | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/packages/taler-wallet-webextension/src/cta/Withdraw/state.ts b/packages/taler-wallet-webextension/src/cta/Withdraw/state.ts @@ -476,7 +476,7 @@ function exchangeSelectionState( const ageRestrictionEnabled = ageRestrictionOptions !== undefined; if (ageRestrictionEnabled) { - ageRestrictionOptions["0"] = "Not restricted"; + ageRestrictionOptions["0"] = i18n.str`Not restricted`; } //TODO: calculate based on exchange info @@ -493,7 +493,9 @@ function exchangeSelectionState( const altCurrencies = amountHook.response.accounts .filter((a) => !!a.currencySpecification) .map((a) => a.currencySpecification!.name); - const chooseCurrencies = altCurrencies.length <= 1 ? [] : altCurrencies; + const uniqueAltCurrencies = [...new Set(altCurrencies)]; + const chooseCurrencies = + uniqueAltCurrencies.length <= 1 ? [] : uniqueAltCurrencies; const convAccount = amountHook.response.accounts.find((c) => { return (