taler-typescript-core

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

commit 6a4675267e00a5fd0eeb9b949e156510fc491602
parent b9e219c02127ec789ae44268d6e9d66ae07e2f83
Author: Florian Dold <florian@dold.me>
Date:   Mon, 22 Jan 2024 22:25:45 +0100

wallet-core: better mock default for currency specs

Diffstat:
Mpackages/taler-wallet-core/src/wallet.ts | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts @@ -1258,12 +1258,12 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>( } const defaultResp: GetCurrencySpecificationResponse = { currencySpecification: { - name: "Unknown", + name: req.scope.currency, num_fractional_input_digits: 2, num_fractional_normal_digits: 2, num_fractional_trailing_zero_digits: 2, alt_unit_names: { - "0": "??", + "0": req.scope.currency, }, }, };