Skip to content

Commit

Permalink
Requery to Yelp when clicking a sort option.
Browse files Browse the repository at this point in the history
  • Loading branch information
jadeifurung committed Nov 10, 2019
1 parent 096829d commit e20e768
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/SearchBar/SearchBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ class SearchBar extends React.Component {
this.setState({
sortBy: sortByOption
});

this.props.searchYelp(this.state.term, this.state.location, this.state.sortBy);
}

handleTermChange(e) {
Expand Down

0 comments on commit e20e768

Please sign in to comment.