Skip to content

Commit

Permalink
Remove in-need parameter on main businesses page
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjhanson committed Nov 13, 2020
1 parent 1213b70 commit b5ee6b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/businesses.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function generateURL(filters, setPageLocation) {
}

function searchingInNeed(location) {
return location.pathname.match(/\/all/) ? 'false' : true;
return location.pathname.match(/\/all|\/businesses\/?$/) ? 'false' : true;
}

function searchCategory(category) {
Expand Down

0 comments on commit b5ee6b5

Please sign in to comment.