From 4665394bd4a5d58908f1ca49c38aebde5f5d265e Mon Sep 17 00:00:00 2001 From: ramirez Date: Thu, 5 Mar 2026 18:34:49 +0900 Subject: [PATCH] Revert "fix: OTP auto-submit not firing when typing manually" This reverts commit 6be28b4fb5df366ac5aec89121130f03c8d37401. --- apps/portal/src/components/molecules/OtpInput/OtpInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/portal/src/components/molecules/OtpInput/OtpInput.tsx b/apps/portal/src/components/molecules/OtpInput/OtpInput.tsx index a57cc60d..8cef35a8 100644 --- a/apps/portal/src/components/molecules/OtpInput/OtpInput.tsx +++ b/apps/portal/src/components/molecules/OtpInput/OtpInput.tsx @@ -65,7 +65,7 @@ function useOtpHandlers({ const newValue = newDigits.join(""); onChange(newValue); if (char && index < length - 1) focusInput(index + 1); - if (newValue.length === length) onComplete?.(newValue); + if (newValue.length === length && !newValue.includes("")) onComplete?.(newValue); }, [digits, length, onChange, onComplete, focusInput] );