Skip to content

Commit c415367

Browse files
committed
removed error in login page
Signed-off-by: Hrishikesh Agarwal <[email protected]>
1 parent 488947b commit c415367

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pages/Login.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ export const Login = (props) => {
7676
type='text'
7777
{...register('identifier', { required: true })}
7878
/>
79-
{errors.identifier && (
80-
<FormError type={errors.identifier.type} />
79+
{errors?.identifier && (
80+
<FormError type={errors?.identifier.type} />
8181
)}
8282
</div>
8383

@@ -103,7 +103,7 @@ export const Login = (props) => {
103103
)}
104104
</div>
105105
</div>
106-
{errors.password && <FormError type={errors.password.type} />}
106+
{errors?.password && <FormError type={errors?.password.type} />}
107107
</div>
108108

109109
<Button type='submit' className='btn btn-default'>

0 commit comments

Comments
 (0)