Skip to content

Conversation

@varruunnn
Copy link

@varruunnn varruunnn commented Oct 10, 2025

UX: Improve OTP flow by clearing field on resend
Clears the existing 6-digit code from the input field when the "Resend" button is clicked and the new OTP is successfully initiated.

This prevents users from mistakenly attempting to submit the old, potentially expired code after a new one has been requested. This change applies to both the local React state and the React Hook Form state.

CLOSES #230

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resend Button not clear the intial state of OTP

1 participant