Skip to content

Commit

Permalink
fix: provider destructuring doesn't work for WalletConnect
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Mar 1, 2023
1 parent d28f586 commit 76647ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/wallet-management/src/walletProviders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export enum ProviderIdentityFlag {

const metamask: Wallet = {
name: 'MetaMask',
checkProviderIdentity: ({ provider }) =>
checkProviderIdentity: () =>
// Removed for now to allow all kinds of injected wallets to connect using the metamask button as fallback
// !!provider && !!provider[ProviderIdentityFlag.MetaMask],
true,
Expand All @@ -63,7 +63,7 @@ const metamask: Wallet = {

const walletConnect: Wallet = {
name: 'Wallet Connect',
checkProviderIdentity: ({ provider }) => true,
checkProviderIdentity: () => true,
icon: walletIcons.walletConnect,
platforms: ['all'],
web3react: createWalletConnectConnector(),
Expand Down Expand Up @@ -287,7 +287,7 @@ const tp: Wallet = {
const xdefi: Wallet = {
name: 'XDEFI',
// eslint-disable-next-line dot-notation
checkProviderIdentity: ({ provider }) => true,
checkProviderIdentity: () => true,
icon: walletIcons.xdefi,
platforms: ['all'],
web3react: createMetamaskConnector(),
Expand Down

0 comments on commit 76647ed

Please sign in to comment.