Skip to content

Commit

Permalink
when metamask successfully connects, disable button (MetaMask#441)
Browse files Browse the repository at this point in the history
Co-authored-by: Austin Akers <[email protected]>
  • Loading branch information
rhyanvargas and BboyAkers authored Apr 7, 2022
1 parent 9ec612e commit a99c0c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/create-dapp.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ const MetaMaskClientCheck = () => {
//When the button is clicked we call th is function
onboardButton.onclick = onClickInstall;
//The button is now disabled
onboardButton.disabled = false;
onboardButton.disabled = true;
} else {
//If MetaMask is installed we ask the user to connect to their wallet
onboardButton.innerText = 'Connect';
Expand Down

0 comments on commit a99c0c6

Please sign in to comment.