Fix join redirect (#2266)

This commit is contained in:
Denis Bykhov 2022-09-06 18:09:05 +06:00 committed by GitHub
parent 5d21c35ca6
commit d8607c42d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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]
}
}