This commit is contained in:
Manav Rathi
2024-11-20 09:42:37 +05:30
parent 09f76599b2
commit 6fe4201eb8
3 changed files with 5 additions and 3 deletions

View File

@@ -50,6 +50,7 @@ export default function VerifyTwoFactor(props: Props) {
};
const onChange =
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
(callback: Function, triggerSubmit: Function) => (otp: string) => {
callback(otp);
if (otp.length === 6) {

View File

@@ -21,14 +21,14 @@ export default [
"@typescript-eslint/array-type": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/prefer-optional-chain": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-misused-promises": "off",
"react-hooks/exhaustive-deps": "off",
"react-hooks/rules-of-hooks": "off",
"react-refresh/only-export-components": "off",
/** TODO: New during eslint 8=>9 migration */
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-unsafe-function-type": "off",
},
},
];

View File

@@ -278,6 +278,7 @@ const Page: React.FC<PageProps> = ({ appContext }) => {
}
};
// eslint-disable-next-line @typescript-eslint/no-misused-promises
const useMasterPassword: VerifyMasterPasswordFormProps["callback"] = async (
key,
kek,