Skip to content

Commit

Permalink
fix: add "girl" as search term for the girls
Browse files Browse the repository at this point in the history
  • Loading branch information
believer committed Sep 6, 2019
1 parent 812e994 commit 3f4f6d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/Workouts.re
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,12 @@ let make = (~query) => {
React.useEffect1(
() => {
switch (query) {
| None => dispatch(UpdateQuery(None))
| None =>
dispatch(SetCategory(None));
dispatch(UpdateQuery(None));
| Some(q) =>
switch (q->Js.String.toLowerCase) {
| "girl"
| "the girls"
| "girls" =>
dispatch(SetCategory(Some(Girl)));
Expand Down

0 comments on commit 3f4f6d7

Please sign in to comment.