diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/History.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/History.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/History.tsx b/packages/taler-wallet-webextension/src/wallet/History.tsx index 1d51f835a..f2a239f83 100644 --- a/packages/taler-wallet-webextension/src/wallet/History.tsx +++ b/packages/taler-wallet-webextension/src/wallet/History.tsx @@ -111,8 +111,10 @@ export function HistoryView({ balances: Balance[]; }): VNode { const { i18n } = useTranslationContext(); - const currencies = balances.map((b) => b.available.split(":")[0]); const { pushAlertOnError } = useAlertContext(); + const currencies = balances + .filter((b) => Amounts.isNonZero(b.available)) + .map((b) => b.available.split(":")[0]); const defaultCurrencyIndex = currencies.findIndex( (c) => c === defaultCurrency, |