From 9a04297535ad05fda9b4ead59a32434af9b27c18 Mon Sep 17 00:00:00 2001 From: Aaron Cook Date: Tue, 1 Mar 2022 12:47:30 +0100 Subject: [PATCH] fix: supported wallets (#3603) --- src/logic/wallets/utils/walletList.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/logic/wallets/utils/walletList.ts b/src/logic/wallets/utils/walletList.ts index 89234f0605..76d8005e9b 100644 --- a/src/logic/wallets/utils/walletList.ts +++ b/src/logic/wallets/utils/walletList.ts @@ -78,8 +78,11 @@ export const isSupportedWallet = (name: WALLETS | string): boolean => { export const getSupportedWallets = (chainId: ChainId): WalletSelectModuleOptions['wallets'] => { const supportedWallets: WalletSelectModuleOptions['wallets'] = wallets(chainId) .filter(({ walletName, desktop }) => { + if (!isSupportedWallet(walletName)) { + return false + } // Desktop vs. Web app wallet support - return isSupportedWallet(walletName) && window.isDesktop ? desktop : true + return window.isDesktop ? desktop : true }) .map(({ desktop: _, ...rest }) => rest)