mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
validate birthdate
This commit is contained in:
parent
9539afd0e2
commit
55e7ada760
1 changed files with 6 additions and 3 deletions
|
@ -237,10 +237,13 @@ class BirthDateStep extends React.Component {
|
|||
]);
|
||||
}
|
||||
validateSelect (selection) {
|
||||
console.log(selection);
|
||||
if (selection === 'null') {
|
||||
return this.props.intl.formatMessage({id: 'form.validationRequired'});
|
||||
}
|
||||
return null;
|
||||
}
|
||||
validateForm (values) {
|
||||
console.log(values);
|
||||
validateForm () {
|
||||
return {};
|
||||
}
|
||||
handleValidSubmit (formData, formikBag) {
|
||||
formikBag.setSubmitting(false);
|
||||
|
|
Loading…
Reference in a new issue