Closed AshenI99 closed 2 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/curaos/frontend/59hahRWSsjCDaXBPcJ1p252VDoLZ
✅ Preview: https://frontend-git-layoutconfusion-curaos.vercel.app
Problem
When switching between projects, sometimes it is showing previous logged project details and account in the screen for around 1 second or so. It might be confusing for some users. It is happening because signet function get a second to complete the execution.
Solution
When current project id and previously logged project id are not same,
accountId
is not passing to theMenu
andHeader
components. Therefore it will display the login page. In the meantime,signOut
function get executed.Then got another error when redirecting to the
explore page
directly fromprojects catalog page
. It is happening because previous project is not logged out. Therefore added asignOut
function before redirecting to theexplore page
.