validate birthdate

This commit is contained in:
Ben Wheeler 2019-07-17 12:40:59 -04:00
parent 9539afd0e2
commit 55e7ada760

View file

@ -237,10 +237,13 @@ class BirthDateStep extends React.Component {
]); ]);
} }
validateSelect (selection) { validateSelect (selection) {
console.log(selection); if (selection === 'null') {
return this.props.intl.formatMessage({id: 'form.validationRequired'});
} }
validateForm (values) { return null;
console.log(values); }
validateForm () {
return {};
} }
handleValidSubmit (formData, formikBag) { handleValidSubmit (formData, formikBag) {
formikBag.setSubmitting(false); formikBag.setSubmitting(false);