mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-30 02:56:20 -05:00
Merge pull request #985 from TheGrits/patch-2
Fix gh-706: "This field is required" when phone number is null
This commit is contained in:
commit
f7f4ed466e
1 changed files with 1 additions and 1 deletions
|
@ -457,7 +457,7 @@ module.exports = {
|
|||
onValidSubmit: function (formData, reset, invalidate) {
|
||||
if (!formData.phone || formData.phone.national_number === '+') {
|
||||
return invalidate({
|
||||
'phone': this.props.intl.formatMessage({id: 'teacherRegistration.validationPhoneNumber'})
|
||||
'phone': this.props.intl.formatMessage({id: 'teacherRegistration.validationRequired'})
|
||||
});
|
||||
}
|
||||
return this.props.onNextStep(formData);
|
||||
|
|
Loading…
Reference in a new issue