From e20e7681169ceff79f6900a847ff6028b0109ee6 Mon Sep 17 00:00:00 2001 From: jedojade Date: Sun, 10 Nov 2019 21:22:49 +0800 Subject: [PATCH] Requery to Yelp when clicking a sort option. --- src/components/SearchBar/SearchBar.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/SearchBar/SearchBar.js b/src/components/SearchBar/SearchBar.js index 569a795..ea42242 100644 --- a/src/components/SearchBar/SearchBar.js +++ b/src/components/SearchBar/SearchBar.js @@ -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) {