Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rede De Mentores
Frontend
Commits
ca9c40c2
Commit
ca9c40c2
authored
Jun 21, 2020
by
Gustavo Vidaletti
Browse files
FixCadastro: Verificação de email somente após a tentativa de cadastro
parent
46d13f55
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/pages/cadastro-mentor/CadastroMentor.jsx
View file @
ca9c40c2
...
...
@@ -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
''
;
};
...
...
src/pages/cadastro-mentorado/CadastroMentorado.jsx
View file @
ca9c40c2
...
...
@@ -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
''
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment