mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-30 02:56:20 -05:00
collapse switch cases
This commit is contained in:
parent
55cb112ee9
commit
46351c116d
1 changed files with 0 additions and 2 deletions
|
@ -93,8 +93,6 @@ module.exports.validateEmailRemotely = email => (
|
||||||
resolve({valid: true});
|
resolve({valid: true});
|
||||||
break;
|
break;
|
||||||
case 'Scratch is not allowed to send email to this address.': // e.g., bad TLD or block-listed
|
case 'Scratch is not allowed to send email to this address.': // e.g., bad TLD or block-listed
|
||||||
resolve({valid: false, errMsgId: 'registration.validationEmailInvalid'});
|
|
||||||
break;
|
|
||||||
case 'Enter a valid email address.':
|
case 'Enter a valid email address.':
|
||||||
default:
|
default:
|
||||||
resolve({valid: false, errMsgId: 'registration.validationEmailInvalid'});
|
resolve({valid: false, errMsgId: 'registration.validationEmailInvalid'});
|
||||||
|
|
Loading…
Reference in a new issue