From f768a7df6e37b4fa0338902308b6bca3e9491254 Mon Sep 17 00:00:00 2001 From: axgu <86838870+axgu@users.noreply.github.com> Date: Fri, 24 May 2024 23:35:05 -0400 Subject: [PATCH] Annagu/fix location filtering (#76) * fix location filtering * change retrieve locations field * fix location filtering * 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()) );