Fix booking own listing

Event from the form submit handler is also passed to the submit handler
obtained in the props.
This commit is contained in:
Hannu Lyytikainen 2017-10-10 18:24:16 +03:00
parent 961f81613c
commit ae62d9bbbd

View file

@ -107,7 +107,7 @@ export class BookingDatesFormComponent extends Component {
e.preventDefault();
this.setState({ focusedInput: END_DATE });
} else {
this.props.handleSubmit();
this.props.handleSubmit(e);
}
}