Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Match the condition in one more place

Manav Rathi4b7155dd13ac
diff --git a/web/packages/accounts/pages/credentials.tsx b/web/packages/accounts/pages/credentials.tsx
index 50cbc02ca0..d553eef534 100644
--- a/web/packages/accounts/pages/credentials.tsx
+++ b/web/packages/accounts/pages/credentials.tsx
@@ -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;
}