From eae930552ac345144df31b9fd91a6b5cb63ba50a Mon Sep 17 00:00:00 2001 From: Sabda Yagra Date: Mon, 11 Aug 2025 15:29:27 +0700 Subject: [PATCH] fix: resend otp --- app/[locale]/auth/page.tsx | 3 ++- components/auth/otp-form.tsx | 8 ++++---- components/landing-page/search-section-new.tsx | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/[locale]/auth/page.tsx b/app/[locale]/auth/page.tsx index c5586d72..706c5d9f 100644 --- a/app/[locale]/auth/page.tsx +++ b/app/[locale]/auth/page.tsx @@ -75,7 +75,8 @@ const AuthPage = ({ params: { locale } }: { params: { locale: string } }) => { toast.error(error); }; - const handleOTPResend = () => { + const handleOTPResend = async () => { + const result = await validateEmail(loginCredentials as LoginFormData); toast.info("OTP resent successfully"); }; diff --git a/components/auth/otp-form.tsx b/components/auth/otp-form.tsx index 5adcd047..d3e508cd 100644 --- a/components/auth/otp-form.tsx +++ b/components/auth/otp-form.tsx @@ -67,9 +67,9 @@ export const OTPForm: React.FC = ({ } }; - const handleResend = () => { - onResend?.(); - }; + // const handleResend = () => { + // onResend?.(); + // }; return (
@@ -138,7 +138,7 @@ export const OTPForm: React.FC = ({