From 042fdb3cbeeae5d0974f6a59d1f64642c4927ad4 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Thu, 5 May 2022 17:34:16 -0400 Subject: [PATCH] Fix tags page --- web/components/contract-search.tsx | 2 +- web/pages/tag/[tag].tsx | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/web/components/contract-search.tsx b/web/components/contract-search.tsx index 980f8d97..ca909035 100644 --- a/web/components/contract-search.tsx +++ b/web/components/contract-search.tsx @@ -160,7 +160,7 @@ const useFilterCreator = (creatorId: string | undefined) => { const useFilterTag = (tag: string | undefined) => { const { refine } = useRefinementList({ attribute: 'lowercaseTags' }) useEffect(() => { - if (tag) refine(`${tag.toLowerCase()} OR ManifoldMarkets`) + if (tag) refine(tag.toLowerCase()) }, [tag, refine]) } diff --git a/web/pages/tag/[tag].tsx b/web/pages/tag/[tag].tsx index 171a3ab2..cfec0893 100644 --- a/web/pages/tag/[tag].tsx +++ b/web/pages/tag/[tag].tsx @@ -7,11 +7,16 @@ export default function TagPage() { const router = useRouter() const { tag } = router.query as { tag: string } + // TODO: Fix error: The provided `href` (/tag/[tag]?s=newest) value is missing query values (tag) return ( <ContractSearch - querySortOptions={{ filter: { tag }, defaultSort: 'newest' }} + querySortOptions={{ + filter: { tag }, + defaultSort: 'newest', + shouldLoadFromStorage: false, + }} /> </Page> )