From 67019e3ababd2e81eee6d6ce1dceda2a31d6739d Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Thu, 18 Jul 2024 20:32:09 +0300 Subject: [PATCH] apps/web: Form: show telegram link on step login-success --- apps/web/components/Form/base-form.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' ? ( Открыть чат с ботом