-
Notifications
You must be signed in to change notification settings - Fork 0
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: post-QA issues #57
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
loading: true, | ||
error: 'There was a problem connecting to your Google account', | ||
}); | ||
setStep(Step.CONNECT_EOA); |
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 struggle to understand this part. You're checking if personalWalletId
exists to check if the smart wallet creation was successful or not?
If it's false, why should we setStep(Step.CONNECT_EOA)
? ConnectEOAModal
modal is for forming the (realOpAddress, smartWalletAddress)
mapping in our backend. Ideally, we would check if the mapping exists in the db or not, if it exists we move the user to the step === Step.SUCCESS
if not, to the step === Step.CONNECT_EOA
. However, since we are lacking that endpoint, I would move all users regardless to the step === Step.CONNECT_EOA
.
However, I can't understand why we would move them to step === Step.CONNECT_EOA
if !personalWalletId
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.
It's regarding this 1st point #4 (comment)
If the user already has a smart wallet but only logged out (token expired) we should not show the create wallet loading, connect, and success connection models, we have to close the modal automatically after the OTP is correct. #58](#58)
so that is just to not show the connect and success modals
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.
personalWalletId
is just to check if the user has already a smart wallet
Related to #4 (comment) & #5 (comment) & #30 (comment) & #37