Merge pull request #826 from mewtaylor/hotfix/gh-816

[Master] Hotfix: Remove `phoneLength` validation
This commit is contained in:
Matthew Taylor 2016-08-10 10:59:07 -04:00 committed by GitHub
commit 00920e7da6

View file

@ -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'})
});