Revert "fix: auto-submit OTP code on completion in get-started verification step"
This reverts commit 9754c73b64ef04f732c66bbabb59e1535b568ad5.
This commit is contained in:
parent
4665394bd4
commit
f6329bbe3b
@ -24,10 +24,6 @@ export function VerificationStep() {
|
|||||||
setCode(value);
|
setCode(value);
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleCodeComplete = (value: string) => {
|
|
||||||
send({ type: "VERIFY_CODE", code: value });
|
|
||||||
};
|
|
||||||
|
|
||||||
const handleVerify = () => {
|
const handleVerify = () => {
|
||||||
if (code.length === 6) {
|
if (code.length === 6) {
|
||||||
send({ type: "VERIFY_CODE", code });
|
send({ type: "VERIFY_CODE", code });
|
||||||
@ -57,7 +53,6 @@ export function VerificationStep() {
|
|||||||
<OtpInput
|
<OtpInput
|
||||||
value={code}
|
value={code}
|
||||||
onChange={handleCodeChange}
|
onChange={handleCodeChange}
|
||||||
onComplete={handleCodeComplete}
|
|
||||||
disabled={loading}
|
disabled={loading}
|
||||||
error={error ?? undefined}
|
error={error ?? undefined}
|
||||||
autoFocus
|
autoFocus
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user