From 9754c73b64ef04f732c66bbabb59e1535b568ad5 Mon Sep 17 00:00:00 2001 From: ramirez Date: Thu, 5 Mar 2026 18:19:45 +0900 Subject: [PATCH] fix: auto-submit OTP code on completion in get-started verification step Add onComplete handler to OtpInput so the verification code auto-submits when all 6 digits are entered, matching the existing behavior in LoginOtpStep and OtpStep components. Co-Authored-By: Claude Opus 4.6 --- .../components/GetStartedForm/steps/VerificationStep.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/portal/src/features/get-started/components/GetStartedForm/steps/VerificationStep.tsx b/apps/portal/src/features/get-started/components/GetStartedForm/steps/VerificationStep.tsx index ef7df58c..9cbd1224 100644 --- a/apps/portal/src/features/get-started/components/GetStartedForm/steps/VerificationStep.tsx +++ b/apps/portal/src/features/get-started/components/GetStartedForm/steps/VerificationStep.tsx @@ -24,6 +24,10 @@ export function VerificationStep() { setCode(value); }; + const handleCodeComplete = (value: string) => { + send({ type: "VERIFY_CODE", code: value }); + }; + const handleVerify = () => { if (code.length === 6) { send({ type: "VERIFY_CODE", code }); @@ -53,6 +57,7 @@ export function VerificationStep() {