Skip to content
This repository was archived by the owner on Nov 10, 2023. It is now read-only.

Commit 9a04297

Browse files
author
Aaron Cook
authored
fix: supported wallets (#3603)
1 parent e950d6b commit 9a04297

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/logic/wallets/utils/walletList.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,11 @@ export const isSupportedWallet = (name: WALLETS | string): boolean => {
7878
export const getSupportedWallets = (chainId: ChainId): WalletSelectModuleOptions['wallets'] => {
7979
const supportedWallets: WalletSelectModuleOptions['wallets'] = wallets(chainId)
8080
.filter(({ walletName, desktop }) => {
81+
if (!isSupportedWallet(walletName)) {
82+
return false
83+
}
8184
// Desktop vs. Web app wallet support
82-
return isSupportedWallet(walletName) && window.isDesktop ? desktop : true
85+
return window.isDesktop ? desktop : true
8386
})
8487
.map(({ desktop: _, ...rest }) => rest)
8588

0 commit comments

Comments
 (0)