From d55990d5d48362294370997a8b6bdee999d14bf0 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Mon, 9 May 2022 15:47:18 -0400 Subject: [PATCH] Fix contract search not adjusting to new user --- web/components/contract-search.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web/components/contract-search.tsx b/web/components/contract-search.tsx index b46bee6e..be6afcfd 100644 --- a/web/components/contract-search.tsx +++ b/web/components/contract-search.tsx @@ -28,7 +28,6 @@ const searchClient = algoliasearch( ) const indexPrefix = ENV === 'DEV' ? 'dev-' : '' -console.log('env', ENV, indexPrefix) const sortIndexes = [ { label: 'Newest', value: indexPrefix + 'contracts-newest' }, @@ -68,6 +67,11 @@ export function ContractSearch(props: { { - console.log('initial query', initialQuery) setQuery(initialQuery) }, [initialQuery]) @@ -134,12 +137,10 @@ export function ContractSearchInner(props: { }) useEffect(() => { - console.log('setting query', query) setQuery(query) }, [query]) useEffect(() => { - console.log('effect sort', 'curr', index) const sort = index.split('contracts-')[1] as Sort if (sort) { setSort(sort)