Skip to content

Commit

Permalink
Use proper link for Metamask, too
Browse files Browse the repository at this point in the history
  • Loading branch information
csillag committed Dec 6, 2023
1 parent 9fb13db commit 07e0221
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions src/pages/ConnectWallet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ export const ConnectWallet: FC = () => {
}
}

const handleInstallMetaMask = async () => {
window.open(METAMASK_HOME_PAGE, '_blank', 'noopener,noreferrer')
}

return (
<>
{!hasMetaMaskWallet && (
Expand All @@ -65,14 +61,11 @@ export const ConnectWallet: FC = () => {
MetaMask not detected, please install it.
</p>

<Button
className={classes.installMetaMaskBtn}
onClick={handleInstallMetaMask}
fullWidth
disabled={isLoading}
>
Install MetaMask
</Button>
<a href={METAMASK_HOME_PAGE} target={'_blank'} rel={'noopener noreferrer'}>
<Button className={classes.installMetaMaskBtn} fullWidth disabled={isLoading}>
Install MetaMask
</Button>
</a>
<Button
variant="secondary"
onClick={() => setHasMetaMaskWallet(true)}
Expand Down

0 comments on commit 07e0221

Please sign in to comment.