Skip to content

Commit

Permalink
fix: fixed metamask not showing if not present in it
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausMikhaelson committed Sep 25, 2023
1 parent 74b7098 commit 77690ea
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import coinbaseWalletModule from '@web3-onboard/coinbase'
import { ConnectButtonSub } from './ConnectButton';
import { InfuraAPIKey } from '../../../config';
import { Web3OnboardProvider } from '@web3-onboard/react';
import injectedModule from '@web3-onboard/injected-wallets';
import injectedModule, { ProviderLabel } from '@web3-onboard/injected-wallets';
import walletConnectModule from '@web3-onboard/walletconnect'
import init from '@web3-onboard/core';
import { ethers } from 'ethers';
Expand Down Expand Up @@ -64,7 +64,9 @@ const chains = [
}
]

const wallets = [injectedModule(), walletConnect,coinbaseWalletSdk]
const wallets = [injectedModule({
displayUnavailable: [ProviderLabel.MetaMask]
}), walletConnect, coinbaseWalletSdk]


const appMetadata = {
Expand Down Expand Up @@ -98,7 +100,7 @@ interface IConnectButtonCompProps {
autoConnect?: boolean;
}

export const ConnectButtonComp:React.FC<IConnectButtonCompProps> = ({ autoConnect }) => {
export const ConnectButtonComp: React.FC<IConnectButtonCompProps> = ({ autoConnect }) => {
return (
<Web3OnboardProvider web3Onboard={web3OnBoard}>
<ConnectButtonSub autoConnect={autoConnect} />
Expand Down

0 comments on commit 77690ea

Please sign in to comment.