summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-01-22 22:25:45 +0100
committerFlorian Dold <florian@dold.me>2024-01-22 22:25:45 +0100
commit6a4675267e00a5fd0eeb9b949e156510fc491602 (patch)
tree679ee8e83794193c6c5ae5693a35156b553995f1 /packages/taler-wallet-core/src/wallet.ts
parentb9e219c02127ec789ae44268d6e9d66ae07e2f83 (diff)
downloadwallet-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/src/wallet.ts')
-rw-r--r--packages/taler-wallet-core/src/wallet.ts4
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,
},
},
};