Commit 00920e7d authored by Matthew Taylor's avatar Matthew Taylor Committed by GitHub

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

[Master] Hotfix: Remove `phoneLength` validation
parents e8543f07 56e88685
...@@ -398,7 +398,7 @@ module.exports = { ...@@ -398,7 +398,7 @@ module.exports = {
}; };
}, },
onValidSubmit: function (formData, reset, invalidate) { 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({ return invalidate({
'phone': this.props.intl.formatMessage({id: 'teacherRegistration.validationPhoneNumber'}) 'phone': this.props.intl.formatMessage({id: 'teacherRegistration.validationPhoneNumber'})
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment