'Back to results' handled properly

This commit is contained in:
Edin Dazdarevic
2017-04-06 02:37:18 +02:00
parent f96cc50687
commit 21ec7c560d
3 changed files with 18 additions and 20 deletions

View File

@@ -9,9 +9,7 @@ export default class ListingDetails extends React.Component {
}
onBackClick() {
if (this.props.onBackClick) {
this.props.onBackClick();
}
this.props.dispatch({type: 'BACK_TO_RESULTS'});
}
render() {