From 60e76f762de9c0f4a7348d6103aecd6fca996ea7 Mon Sep 17 00:00:00 2001 From: johelder Date: Sun, 5 Oct 2025 17:55:41 -0300 Subject: [PATCH] fix: copy-paste otp code --- src/hooks/use-text-input-otp.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hooks/use-text-input-otp.tsx b/src/hooks/use-text-input-otp.tsx index 25e6efa..efbb85e 100644 --- a/src/hooks/use-text-input-otp.tsx +++ b/src/hooks/use-text-input-otp.tsx @@ -50,6 +50,8 @@ export function TextInputOTPProvider({ if (text.length === maxLength) { onFilled?.(text); + setCurrentIndex(text.length - 1); + return; } if (text.length < maxLength) {