Skip to content

Commit

Permalink
fix location filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
axgu committed Feb 24, 2024
1 parent 9f3e388 commit ac00a99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ItemGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function ItemGrid({ query }: Props) {
(!categories.length ||
item.categories.some((category) => categories.includes(category))) &&
(!colors.length || colors.includes(item.color)) &&
(!locations.length || locations.includes(item.retrieveLocation)) &&
(!locations.length || locations.includes(item.foundLocation)) &&
(!date || item.foundDate.getTime() > date.getTime())
);

Expand Down

0 comments on commit ac00a99

Please sign in to comment.