apps/web: fix disable inputs after login step

This commit is contained in:
vchikalkin 2024-05-28 16:03:19 +03:00
parent 6ab9d44430
commit 8cad617acb

View File

@ -34,7 +34,7 @@ function BaseForm({ children, onSubmit }: FormProps & PropsWithChildren) {
return (
<form className={styles.form} onSubmit={handleSubmit(onSubmit)}>
<input
disabled={step === 'telegram'}
disabled={step !== 'login'}
type="text"
placeholder="Логин"
required
@ -42,7 +42,7 @@ function BaseForm({ children, onSubmit }: FormProps & PropsWithChildren) {
{...register('login', { required: true })}
/>
<input
disabled={step === 'telegram'}
disabled={step !== 'login'}
type="password"
placeholder="Пароль"
required