mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-23 19:30:34 -04:00
renamed localResult var
This commit is contained in:
parent
3a299cf810
commit
2154fba86c
1 changed files with 2 additions and 2 deletions
|
@ -22,8 +22,8 @@ class EmailStep extends React.Component {
|
|||
}
|
||||
validateEmailIfPresent (email) {
|
||||
if (!email) return null; // skip validation if email is blank; null indicates valid
|
||||
const localResult = emailValidator.validate(email);
|
||||
if (localResult) {
|
||||
const isValidLocally = emailValidator.validate(email);
|
||||
if (isValidLocally) {
|
||||
return null; // TODO: validate email address remotely
|
||||
}
|
||||
return this.props.intl.formatMessage({id: 'registration.validationEmailInvalid'});
|
||||
|
|
Loading…
Add table
Reference in a new issue