Skip to content

armgit / ente

Public Imported from GitHub
0

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

This shouldn't be named useFoo, leaving that refactoring for later

Manav Rathi98bfb8b5f5e5
diff --git a/web/packages/accounts/eslint.config.mjs b/web/packages/accounts/eslint.config.mjs
index 6a9ee79213..ea97f05ffd 100644
--- a/web/packages/accounts/eslint.config.mjs
+++ b/web/packages/accounts/eslint.config.mjs
@@ -18,7 +18,6 @@ export default [
"@typescript-eslint/no-unsafe-call": "off",
/** TODO: Disabled as we migrate, try to prune these again */
"react-hooks/exhaustive-deps": "off",
- "react-hooks/rules-of-hooks": "off",
"react-refresh/only-export-components": "off",
},
},
diff --git a/web/packages/accounts/pages/credentials.tsx b/web/packages/accounts/pages/credentials.tsx
index 45e46897ec..f41a09258e 100644
--- a/web/packages/accounts/pages/credentials.tsx
+++ b/web/packages/accounts/pages/credentials.tsx
@@ -171,6 +171,7 @@ const Page: React.FC<PageProps> = ({ appContext }) => {
keyAttributes.keyDecryptionNonce,
kek,
);
+ // eslint-disable-next-line react-hooks/rules-of-hooks
useMasterPassword(key, kek, keyAttributes);
return;
}