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] );