From fbb7dd9e7e7fe4cf0611f5827f0bd250634dc29f Mon Sep 17 00:00:00 2001
From: Florian Dold <florian@dold.me>
Date: Sat, 15 Oct 2022 21:26:36 +0200
Subject: wallet-core, wallet-cli: add status to exchange list, add detail
 query to CLI

---
 .../taler-wallet-webextension/src/wallet/DestinationSelection.tsx   | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'packages/taler-wallet-webextension/src/wallet/DestinationSelection.tsx')

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} />;
 }
-- 
cgit v1.2.3

