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: post-QA issues #57

Merged
merged 6 commits into from
Oct 28, 2024
Merged

Fix: post-QA issues #57

merged 6 commits into from
Oct 28, 2024

Conversation

Meriem-BM
Copy link
Collaborator

@Meriem-BM Meriem-BM commented Oct 27, 2024

Copy link

vercel bot commented Oct 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
pairwise-rf6 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 28, 2024 9:13am

@Meriem-BM Meriem-BM requested a review from mmahdigh October 27, 2024 19:51
loading: true,
error: 'There was a problem connecting to your Google account',
});
setStep(Step.CONNECT_EOA);
Copy link
Collaborator

@mmahdigh mmahdigh Oct 28, 2024

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

Copy link
Collaborator Author

@Meriem-BM Meriem-BM Oct 28, 2024

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

Copy link
Collaborator Author

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

@mmahdigh mmahdigh merged commit a9dc808 into staging Oct 28, 2024
2 checks passed
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