-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve issue with the MetaMask button #1086
Resolve issue with the MetaMask button #1086
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to clear cookies but after that it worked fine! LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweeeet! It's working now!
On the Connect MetaMask page, after you connect to a network, the button text doesn't change to show "Connected <shortened_account_here>" and disables the button like it does in the modal. So ideally, that should be added in because if I am already connected to a network, but I try to click the button again, nothing happens. I don't think anyone would do this haha, but you never know. Anyways, so if the button was disabled, this issue would be avoided.
js/connectMetaMask.js
Outdated
}; | ||
|
||
// Original handleError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
Co-authored-by: Erin Shaben <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks!
Description
I added a missing event listener for the
.connectMetaMask
button in the body so it calls the sameconnectNetwork
function used by the nav button. This ensures that the body button now correctly connects to the specified network.Checklist
moonbeam-mkdocs
to update redirects