fix(splash): remove profile check on session restore, always go to script page
This commit is contained in:
@@ -52,8 +52,7 @@ const resolveInitialRoute = async () => {
|
|||||||
const session = await store.restoreSession()
|
const session = await store.restoreSession()
|
||||||
|
|
||||||
if (session.status === store.SESSION_STATUS.AUTHENTICATED) {
|
if (session.status === store.SESSION_STATUS.AUTHENTICATED) {
|
||||||
const target = session.hasProfile ? '/pages/main/index?tab=script' : '/pages/onboarding/index'
|
routeOnce('/pages/main/index?tab=script', { reason: session.reason })
|
||||||
routeOnce(target, { reason: session.reason, hasProfile: session.hasProfile })
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user