@insforge/react 0.5.10 → 0.5.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1092,7 +1092,7 @@ function AuthEmailVerificationStep({
1092
1092
  const isLinkMethod = method === "link";
1093
1093
  const displayDescription = isLinkMethod ? "We've sent an email to {email}. Please check your email to confirm your account before signing in. The confirmation link expires in 10 minutes." : "We've sent a verification code to your inbox at {email}. Enter it below to proceed.";
1094
1094
  react.useEffect(() => {
1095
- if (emailSent && resendCountdown > 0) {
1095
+ if (resendDisabled && resendCountdown > 0) {
1096
1096
  const timer = setInterval(() => {
1097
1097
  setResendCountdown((prev) => {
1098
1098
  if (prev <= 1) {
@@ -1104,7 +1104,7 @@ function AuthEmailVerificationStep({
1104
1104
  }, 1e3);
1105
1105
  return () => clearInterval(timer);
1106
1106
  }
1107
- }, [emailSent, resendCountdown]);
1107
+ }, [resendDisabled, resendCountdown]);
1108
1108
  const handleResend = async () => {
1109
1109
  setResendDisabled(true);
1110
1110
  setResendCountdown(60);