diff --git a/src/features/Login/hooks.tsx b/src/features/Login/hooks.tsx index 1e91dc8a..8b796cbf 100644 --- a/src/features/Login/hooks.tsx +++ b/src/features/Login/hooks.tsx @@ -18,7 +18,8 @@ export const useLoginForm = () => { const { login } = useAuthStore() const onEmailBlur = ({ target }: FocusEvent) => { - if (!isValidEmail(target.value)) { + const email = target.value + if (email && !isValidEmail(email)) { updateFormError(formIds.email, 'error_invalid_email_format') } }