Skip to content

armgit / ente

Public Imported from GitHub
0

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

Prune

Manav Rathi6533883eaac0
diff --git a/web/packages/accounts/eslint.config.mjs b/web/packages/accounts/eslint.config.mjs
index b23b6c9dd4..1dee2987bf 100644
--- a/web/packages/accounts/eslint.config.mjs
+++ b/web/packages/accounts/eslint.config.mjs
@@ -17,12 +17,6 @@ export default [
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-call": "off",
/** TODO: Disabled as we migrate, try to prune these again */
- "@typescript-eslint/no-unnecessary-type-assertion": "off",
- "@typescript-eslint/array-type": "off",
- "@typescript-eslint/no-empty-function": "off",
- "@typescript-eslint/prefer-optional-chain": "off",
-
-
"react-hooks/exhaustive-deps": "off",
"react-hooks/rules-of-hooks": "off",
"react-refresh/only-export-components": "off",
diff --git a/web/packages/accounts/pages/two-factor/recover.tsx b/web/packages/accounts/pages/two-factor/recover.tsx
index ece422aca9..08fd7a2d8f 100644
--- a/web/packages/accounts/pages/two-factor/recover.tsx
+++ b/web/packages/accounts/pages/two-factor/recover.tsx
@@ -57,7 +57,7 @@ const Page: React.FC<RecoverPageProps> = ({ appContext, twoFactorType }) => {
useEffect(() => {
const user = getData(LS_KEYS.USER);
const sid = user.passkeySessionID || user.twoFactorSessionID;
- if (!user || !user.email || !sid) {
+ if (!user?.email || !sid) {
void router.push("/");
} else if (
!(user.isTwoFactorEnabled || user.isTwoFactorEnabledPasskey) &&