diff options
author | Florian Dold <florian@dold.me> | 2024-06-17 13:50:43 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-06-17 13:50:43 +0200 |
commit | abbab3b029002eb5d603af611db6f411daf5d490 (patch) | |
tree | c48a79a4dc28649ac274b3dafdbb849e3bf517b0 /packages/taler-wallet-webextension/src/wallet | |
parent | 05535fdc226f39666ed0a692871f54dea904af7b (diff) | |
download | wallet-core-abbab3b029002eb5d603af611db6f411daf5d490.tar.xz |
wallet-core: coin history
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/DeveloperPage.tsx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/DeveloperPage.tsx b/packages/taler-wallet-webextension/src/wallet/DeveloperPage.tsx index 8f23c0685..9feb03714 100644 --- a/packages/taler-wallet-webextension/src/wallet/DeveloperPage.tsx +++ b/packages/taler-wallet-webextension/src/wallet/DeveloperPage.tsx @@ -22,7 +22,7 @@ import { LogLevel, NotificationType, ScopeType, - stringifyWithdrawExchange + stringifyWithdrawExchange, } from "@gnu-taler/taler-util"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; import { useTranslationContext } from "@gnu-taler/web-util/browser"; @@ -112,21 +112,21 @@ export function DeveloperPage(): VNode { const currencies: { [ex: string]: string } = {}; const money_by_exchange = coins.reduce( (prev, cur) => { - const denom = Amounts.parseOrThrow(cur.denom_value); - if (!prev[cur.exchange_base_url]) { - prev[cur.exchange_base_url] = []; - currencies[cur.exchange_base_url] = denom.currency; + const denom = Amounts.parseOrThrow(cur.denomValue); + if (!prev[cur.exchangeBaseUrl]) { + prev[cur.exchangeBaseUrl] = []; + currencies[cur.exchangeBaseUrl] = denom.currency; } - prev[cur.exchange_base_url].push({ + prev[cur.exchangeBaseUrl].push({ // ageKeysCount: cur.ageCommitmentProof?.proof.privateKeys.length, denom_value: denom.value, denom_fraction: denom.fraction, // remain_value: parseFloat( // Amounts.stringifyValue(Amounts.parseOrThrow(cur.remaining_value)), // ), - status: cur.coin_status, - from_refresh: cur.refresh_parent_coin_pub !== undefined, - id: cur.coin_pub, + status: cur.coinStatus, + from_refresh: cur.refreshParentCoinPub !== undefined, + id: cur.coinPub, }); return prev; }, @@ -351,7 +351,7 @@ export function DeveloperPage(): VNode { <a href={new URL(`/keys`, e.exchangeBaseUrl).href} target="_blank" - rel="noreferrer" + rel="noreferrer" > {e.exchangeBaseUrl} </a> |