Commit ca9c40c2 authored by Gustavo Vidaletti's avatar Gustavo Vidaletti
Browse files

FixCadastro: Verificação de email somente após a tentativa de cadastro

parent 46d13f55
......@@ -225,7 +225,7 @@ function CadastroMentor() {
const ajudaEmail = () => {
if (sent && !email) return 'Email é obrigatório!';
if (!validateEmail(email)) return 'Email inválido!';
if (sent && email && !validateEmail(email)) return 'Email inválido!';
return '';
};
......
......@@ -224,7 +224,7 @@ function CadastroMentorado() {
const ajudaEmail = () => {
if (sent && !email) return 'Email é obrigatório!';
if (!validateEmail(email)) return 'Email inválido!';
if (sent && email && !validateEmail(email)) return 'Email inválido!';
return '';
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment