This commit is contained in:
Abhishek
2025-12-16 01:08:05 +00:00
committed by GitHub
parent 5b9dd09f0d
commit 06d4c7d102
@@ -78,7 +78,6 @@ export const VerifyCodeDialog = ({
if (hasVerified || error || isPending || !/^\d{6}$/.test(value.trim())) return;
verifyCode();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [error, isPending, value, hasVerified]);
useEffect(() => setValue(""), [isOpenDialog]);
@@ -89,7 +88,6 @@ export const VerifyCodeDialog = ({
<Dialog
open={isOpenDialog}
onOpenChange={() => {
setValue("");
resetErrors();
}}>
<DialogContent className="sm:max-w-md">