diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/DestinationSelection.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/DestinationSelection.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/DestinationSelection.tsx b/packages/taler-wallet-webextension/src/wallet/DestinationSelection.tsx index 3143aafa1..94e6ab442 100644 --- a/packages/taler-wallet-webextension/src/wallet/DestinationSelection.tsx +++ b/packages/taler-wallet-webextension/src/wallet/DestinationSelection.tsx @@ -185,7 +185,11 @@ export function SelectCurrency({ ); } const list: Record<string, string> = {}; - hook.response.exchanges.forEach((e) => (list[e.currency] = e.currency)); + hook.response.exchanges.forEach((e) => { + if (e.currency) { + list[e.currency] = e.currency; + } + }); list[""] = "Select a currency"; return <SelectCurrencyView onChange={onChange} list={list} />; } |