diff --git a/apps/web/components/Form/base-form.tsx b/apps/web/components/Form/base-form.tsx index 15d3878..59ae4ff 100644 --- a/apps/web/components/Form/base-form.tsx +++ b/apps/web/components/Form/base-form.tsx @@ -11,7 +11,7 @@ const { TELEGRAM_BOT_URL } = publicRuntimeConfig; export function BaseForm({ children, onSubmit }: FormProps & PropsWithChildren) { const { handleSubmit, register } = useForm(); const { - state: { error, step, tfa }, + state: { error, step }, } = useContext(FormStateContext); return ( @@ -32,7 +32,7 @@ export function BaseForm({ children, onSubmit }: FormProps & PropsWithChildren) autoComplete="on" {...register('password', { required: true })} /> - {tfa ? ( + {step === 'login-success' ? ( Открыть чат с ботом