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

Commit

Permalink
fix: supported wallets (#3603)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook authored Mar 1, 2022
1 parent e950d6b commit 9a04297
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/logic/wallets/utils/walletList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 9a04297

Please sign in to comment.