mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -05:00
only look for empty phone on submit
thanks @rschamp!
This commit is contained in:
parent
30945bc078
commit
6e3a18a574
1 changed files with 1 additions and 1 deletions
|
@ -416,7 +416,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