Skip to content
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

Samueveth/wallet fixes #3

Merged
merged 3 commits into from
Dec 30, 2020
Merged

Samueveth/wallet fixes #3

merged 3 commits into from
Dec 30, 2020

Conversation

samuveth
Copy link
Contributor

Fixes:
snapshot-labs/snapshot-v1#177
snapshot-labs/snapshot-v1#144

Changes proposed in this pull request:

  • return when errors are thrown in fortmatic and metamask login
  • remove isLoggedIn false from fortmatic

@@ -9,6 +9,7 @@ export default class Connector extends LockConnector {
await window['ethereum'].enable();
} catch (e) {
console.error(e);
if (e.code === 4001) return;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this fix?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason for the bug was that the connect() continued after the user canceled. Then the $auth.isAuthenticated was true but there was no address. So the jizzicon picked a random image that it would show.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants