Skip to content

Commit

Permalink
Merge pull request #5 from jadeifurung/click-sort
Browse files Browse the repository at this point in the history
Requery to Yelp when clicking a sort option.
  • Loading branch information
jadeifurung authored Nov 10, 2019
2 parents 096829d + e20e768 commit 19cca9e
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 19cca9e

Please sign in to comment.