Fix join redirect (#2266)

This commit is contained in:
Denis Bykhov
2022-09-06 19:09:05 +07:00
committed by GitHub
parent 5d21c35ca6
commit d8607c42d0
-4
View File
@@ -289,10 +289,6 @@ export async function checkJoined (inviteId: string): Promise<[Status, Workspace
const tokens: Record<string, string> = fetchMetadataLocalStorage(login.metadata.LoginTokens) ?? {}
token = Object.values(tokens)[0]
if (token === undefined) {
const loc = getCurrentLocation()
loc.path[1] = 'login'
loc.path.length = 2
navigate(loc)
return [unknownStatus('Please login'), undefined]
}
}