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.
2 parents 44d1b77 + c415367 commit 0b78ed0Copy full SHA for 0b78ed0
src/pages/Login.js
@@ -77,8 +77,8 @@ export const Login = (props) => {
77
data-cy='login-username'
78
{...register('identifier', { required: true })}
79
/>
80
- {errors.identifier && (
81
- <FormError type={errors.identifier.type} />
+ {errors?.identifier && (
+ <FormError type={errors?.identifier.type} />
82
)}
83
</div>
84
@@ -105,7 +105,7 @@ export const Login = (props) => {
105
106
107
108
- {errors.password && <FormError type={errors.password.type} />}
+ {errors?.password && <FormError type={errors?.password.type} />}
109
110
111
<Button
0 commit comments