@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/forms.cjs CHANGED
@@ -670,7 +670,7 @@ function AuthEmailVerificationStep({
670
670
  const isLinkMethod = method === "link";
671
671
  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.";
672
672
  react.useEffect(() => {
673
- if (emailSent && resendCountdown > 0) {
673
+ if (resendDisabled && resendCountdown > 0) {
674
674
  const timer = setInterval(() => {
675
675
  setResendCountdown((prev) => {
676
676
  if (prev <= 1) {
@@ -682,7 +682,7 @@ function AuthEmailVerificationStep({
682
682
  }, 1e3);
683
683
  return () => clearInterval(timer);
684
684
  }
685
- }, [emailSent, resendCountdown]);
685
+ }, [resendDisabled, resendCountdown]);
686
686
  const handleResend = async () => {
687
687
  setResendDisabled(true);
688
688
  setResendCountdown(60);