Skip to content

Commit

Permalink
Fix case sensitive search
Browse files Browse the repository at this point in the history
  • Loading branch information
drewlyton committed Aug 7, 2023
1 parent 6c4a623 commit 11bf13b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/helpers/filterStories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export function filterStories(
if (!storiesArray) return [];
return storiesArray.filter((story): Boolean => {
return (
story.title.toLowerCase().includes(searchString) ||
story.description.toLowerCase().includes(searchString)
story.title.toLowerCase().includes(searchString.toLowerCase()) ||
story.description.toLowerCase().includes(searchString.toLowerCase())
);
});
}

0 comments on commit 11bf13b

Please sign in to comment.