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
4b835ea7
Unverified
Commit
4b835ea7
authored
Jun 22, 2020
by
LuizaPereira
Committed by
GitHub
Jun 22, 2020
Browse files
Merge pull request #35 from 2020-1-RDM/fixCadastro
FixCadastro: Verificação de email somente após a tentativa de cadastro
parents
46d13f55
ca9c40c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/pages/cadastro-mentor/CadastroMentor.jsx
View file @
4b835ea7
...
...
@@ -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 @
4b835ea7
...
...
@@ -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