Skip to content

Commit

Permalink
filter capitalization fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cdleveille committed Oct 30, 2024
1 parent d901004 commit f94faf8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/helpers/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ export const filterDiscsByQuery = (discs: TDisc[], query: TDiscQuery) => {
return discs.filter(disc => {
return (
(!id || disc.id === id) &&
(!name || disc.name_slug.includes(name)) &&
(!brand || disc.brand_slug.includes(brand)) &&
(!category || disc.category_slug.includes(category)) &&
(!name || disc.name_slug.includes(name.toLowerCase())) &&
(!brand || disc.brand_slug.includes(brand.toLowerCase())) &&
(!category || disc.category_slug.includes(category.toLowerCase())) &&
(!stability || disc.stability_slug === stability.toLowerCase()) &&
(!speed || disc.speed === speed) &&
(!glide || disc.glide === glide) &&
Expand Down

0 comments on commit f94faf8

Please sign in to comment.