Skip to content

Commit

Permalink
Annagu/fix location filtering (#76)
Browse files Browse the repository at this point in the history
* fix location filtering

* change retrieve locations field

* fix location filtering

* fix location filtering
  • Loading branch information
axgu authored May 25, 2024
1 parent 4cb68aa commit f768a7d
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 f768a7d

Please sign in to comment.