π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix the double submit bug
Manav Rathi620853190277
diff --git a/web/packages/accounts/components/Verify2FACodeForm.tsx b/web/packages/accounts/components/Verify2FACodeForm.tsxindex a8c52d6f80..c11e3872d6 100644--- a/web/packages/accounts/components/Verify2FACodeForm.tsx+++ b/web/packages/accounts/components/Verify2FACodeForm.tsx@@ -79,8 +79,8 @@ export const Verify2FACodeForm: React.FC<Verify2FACodeFormProps> = ({// }// };useEffect(() => {- if (values.otp.length == 6) void submitForm();- }, [values]);+ if (values.otp.length == 6 && !isSubmitting) void submitForm();+ }, [values, isSubmitting]);return (<form onSubmit={handleSubmit}>