diff options
author | Florian Dold <florian@dold.me> | 2024-01-22 22:25:45 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-01-22 22:25:45 +0100 |
commit | 6a4675267e00a5fd0eeb9b949e156510fc491602 (patch) | |
tree | 679ee8e83794193c6c5ae5693a35156b553995f1 /packages/taler-wallet-core | |
parent | b9e219c02127ec789ae44268d6e9d66ae07e2f83 (diff) | |
download | wallet-core-6a4675267e00a5fd0eeb9b949e156510fc491602.tar.gz wallet-core-6a4675267e00a5fd0eeb9b949e156510fc491602.tar.bz2 wallet-core-6a4675267e00a5fd0eeb9b949e156510fc491602.zip |
wallet-core: better mock default for currency specs
Diffstat (limited to 'packages/taler-wallet-core')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 333e42621..51706fed3 100644 --- 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, }, }, }; |