diff --git a/packages/experience-legacy/src/containers/TotpCodeVerification/index.tsx b/packages/experience-legacy/src/containers/TotpCodeVerification/index.tsx index a15080bb5aa..f09ac62b2ca 100644 --- a/packages/experience-legacy/src/containers/TotpCodeVerification/index.tsx +++ b/packages/experience-legacy/src/containers/TotpCodeVerification/index.tsx @@ -40,12 +40,16 @@ const TotpCodeVerification = ({ flow }: Props) => { const handleSubmit = useCallback( async (code: string[]) => { + if (isSubmitting) { + return; + } + setInputErrorMessage(undefined); setIsSubmitting(true); await onSubmit(code.join('')); setIsSubmitting(false); }, - [onSubmit] + [onSubmit, isSubmitting] ); return (