Match the condition in one more place

This commit is contained in:
Manav Rathi 2024-03-25 17:44:27 +05:30
parent eecb8b70f4
commit 4b7155dd13
No known key found for this signature in database

View file

@ -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;
}