From 65d738ad940db689dae89f9366b9c35b78bf879a Mon Sep 17 00:00:00 2001 From: varruunnn Date: Sat, 11 Oct 2025 00:44:45 +0530 Subject: [PATCH] UX: Improve OTP flow by clearing field on resend --- frontend/app/_components/Otp.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/app/_components/Otp.tsx b/frontend/app/_components/Otp.tsx index 0cca2126..9ea2309d 100644 --- a/frontend/app/_components/Otp.tsx +++ b/frontend/app/_components/Otp.tsx @@ -68,6 +68,8 @@ export function Otp({ setLoading(false); setTimerSeconds(30); triggerTimer(); + setOtp(""); + form.setValue("otp", ""); toast("OTP resent successfully"); } else { setLoading(false);