Match the condition in one more place
This commit is contained in:
parent
eecb8b70f4
commit
4b7155dd13
1 changed files with 3 additions and 1 deletions
|
@ -35,6 +35,7 @@ import VerifyMasterPasswordForm, {
|
|||
} from "@ente/shared/components/VerifyMasterPasswordForm";
|
||||
import { getAccountsURL } from "@ente/shared/network/api";
|
||||
import {
|
||||
getToken,
|
||||
isFirstLogin,
|
||||
setIsFirstLogin,
|
||||
} from "@ente/shared/storage/localStorage/helpers";
|
||||
|
@ -86,7 +87,8 @@ export default function Credentials({
|
|||
);
|
||||
}
|
||||
}
|
||||
if (key) {
|
||||
const token = getToken();
|
||||
if (key && token) {
|
||||
router.push(APP_HOMES.get(appName));
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue