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

Fix new device flag and refresh meta #923

Merged
merged 13 commits into from
Apr 14, 2021
Merged

Conversation

FSM1
Copy link
Contributor

@FSM1 FSM1 commented Apr 13, 2021

Closes #903

This PR ensures that the isNewDevice is set correctly in all instances.

Also made sure that metadata and shares are refreshed when the Security page is loading, to prevent stale metadata being displayed.

@render
Copy link

render bot commented Apr 13, 2021

@render
Copy link

render bot commented Apr 13, 2021

@render
Copy link

render bot commented Apr 13, 2021

@FSM1 FSM1 requested review from tanmoyAtb, Tbaut and RyRy79261 April 13, 2021 14:46
@FSM1 FSM1 added the Status: Review Needed 👀 Added to PRs when they need more review label Apr 13, 2021
Copy link
Collaborator

@Tbaut Tbaut left a comment

Choose a reason for hiding this comment

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

Made some comments on the code, will test it out now

@Tbaut
Copy link
Collaborator

Tbaut commented Apr 13, 2021

Here's what I tried. Logged in with Metamask, delete any saved browser. Relaunch my browser (so as to clear any session storage) and login with the same account:
I'm being asked my password or passphrase, all good. but then:

  • I'm presented the screen for new accounts (with all the auth methods etc)
  • I clicked "let's go" and then the app crashed:
    image

FSM1 and others added 4 commits April 13, 2021 17:12
@FSM1
Copy link
Contributor Author

FSM1 commented Apr 13, 2021

Here's what I tried. Logged in with Metamask, delete any saved browser. Relaunch my browser (so as to clear any session storage) and login with the same account:
I'm being asked my password or passphrase, all good. but then:

  • I'm presented the screen for new accounts (with all the auth methods etc)
  • I clicked "let's go" and then the app crashed:
    image

Ahhh nice catch. I've added a handler for this and am quickly testing out some of the other logic

FSM1 and others added 2 commits April 13, 2021 19:23
…s/index.tsx

Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>
@FSM1 FSM1 requested a review from Tbaut April 13, 2021 17:24
Copy link
Collaborator

@Tbaut Tbaut left a comment

Choose a reason for hiding this comment

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

Just found a couple nits, works but perfectly!

Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>
@FSM1 FSM1 merged commit 4427c59 into dev Apr 14, 2021
@FSM1 FSM1 deleted the fix/tkey-new-device-flag-is-not-set-903 branch April 14, 2021 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Review Needed 👀 Added to PRs when they need more review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TKey isNewDevice flag is sometimes not set correctly
3 participants