We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 488947b commit c415367Copy full SHA for c415367
src/pages/Login.js
@@ -76,8 +76,8 @@ export const Login = (props) => {
76
type='text'
77
{...register('identifier', { required: true })}
78
/>
79
- {errors.identifier && (
80
- <FormError type={errors.identifier.type} />
+ {errors?.identifier && (
+ <FormError type={errors?.identifier.type} />
81
)}
82
</div>
83
@@ -103,7 +103,7 @@ export const Login = (props) => {
103
104
105
106
- {errors.password && <FormError type={errors.password.type} />}
+ {errors?.password && <FormError type={errors?.password.type} />}
107
108
109
<Button type='submit' className='btn btn-default'>
0 commit comments