From ac00a9940d600e0bc6ddda18820354598290cf7a Mon Sep 17 00:00:00 2001 From: axgu <86838870+axgu@users.noreply.github.com> Date: Sat, 24 Feb 2024 16:58:15 -0500 Subject: [PATCH] fix location filtering --- src/components/ItemGrid.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ItemGrid.tsx b/src/components/ItemGrid.tsx index 3ad739f..4b5b980 100644 --- a/src/components/ItemGrid.tsx +++ b/src/components/ItemGrid.tsx @@ -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()) );