From 9a8a6c84ee2f77c427409b0635ddae21828823a1 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Fri, 29 Jul 2022 16:56:49 -0700 Subject: [PATCH] Remove console.logs --- web/components/contract-search.tsx | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/web/components/contract-search.tsx b/web/components/contract-search.tsx index b6339156..c92eeebe 100644 --- a/web/components/contract-search.tsx +++ b/web/components/contract-search.tsx @@ -2,10 +2,7 @@ import algoliasearch from 'algoliasearch/lite' import { Contract } from 'common/contract' -import { - Sort, - useQueryAndSortParams, -} from '../hooks/use-sort-and-query-params' +import { Sort, useQueryAndSortParams } from '../hooks/use-sort-and-query-params' import { ContractsGrid } from './contract/contracts-list' import { Row } from './layout/row' import { useEffect, useMemo, useState } from 'react' @@ -161,14 +158,6 @@ export function ContractSearch(props: { ) useEffect(() => { - console.log('search', { - query, - page, - numPages, - index, - facetFilters, - numericFilters, - }) let wasMostRecentQuery = true index .search(query, { @@ -191,7 +180,6 @@ export function ContractSearch(props: { })) } setNumPages(results.nbPages) - console.log(results.page + 1, '/', results.nbPages, results.hits) }) return () => { wasMostRecentQuery = false