Skip to content

Commit

Permalink
Update create-dapp.md (MetaMask#512)
Browse files Browse the repository at this point in the history
if we are disabling the button, then I think the disabled property  should be set to true

Co-authored-by: Elliot Winkler <[email protected]>
  • Loading branch information
Monir-Nassan and mcmire authored Jul 8, 2022
1 parent 19ce2fc commit 960f5e1
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 @@ -164,7 +164,7 @@ const MetaMaskClientCheck = () => {
//When the button is clicked we call this function
onboardButton.onclick = onClickInstall;
//The button is now disabled
onboardButton.disabled = false;
onboardButton.disabled = true;
} else {
//If it is installed we change our button text
onboardButton.innerText = 'Connect';
Expand Down

0 comments on commit 960f5e1

Please sign in to comment.