From 1470a20bfe8c371c8f36b2722e5aa1b57f9f6c2e Mon Sep 17 00:00:00 2001 From: Marshall Polaris Date: Sat, 13 Aug 2022 01:53:06 -0700 Subject: [PATCH] Add a clarifying comment --- web/components/contract-search.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/components/contract-search.tsx b/web/components/contract-search.tsx index a6227b9f..53ee1baf 100644 --- a/web/components/contract-search.tsx +++ b/web/components/contract-search.tsx @@ -197,6 +197,8 @@ export function ContractSearch(props: { } useEffect(() => { + // if there are no search results yet (not even an empty page), that means + // we should do an initial search to populate a first page. if (pages.length === 0) { queryNextPage() }