fix(#246): login email on blur validation (#57)

keep-around/af30b88d367751c9e05a735e4a0467a96238ef47
Mirlan 5 years ago committed by GitHub
parent 0785026496
commit 015f222d4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/features/Login/hooks.tsx

@ -18,7 +18,8 @@ export const useLoginForm = () => {
const { login } = useAuthStore()
const onEmailBlur = ({ target }: FocusEvent<HTMLInputElement>) => {
if (!isValidEmail(target.value)) {
const email = target.value
if (email && !isValidEmail(email)) {
updateFormError(formIds.email, 'error_invalid_email_format')
}
}

Loading…
Cancel
Save