mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Merge pull request #826 from mewtaylor/hotfix/gh-816
[Master] Hotfix: Remove `phoneLength` validation
This commit is contained in:
commit
00920e7da6
1 changed files with 1 additions and 1 deletions
|
@ -398,7 +398,7 @@ module.exports = {
|
|||
};
|
||||
},
|
||||
onValidSubmit: function (formData, reset, invalidate) {
|
||||
if (formData.phone.national_number.length !== formData.phone.country_code.format.length) {
|
||||
if (!formData.phone || formData.phone.national_number === '+') {
|
||||
return invalidate({
|
||||
'phone': this.props.intl.formatMessage({id: 'teacherRegistration.validationPhoneNumber'})
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue