diff --git a/src/app/search/page.tsx b/src/app/search/page.tsx index eddd0057..005d15ed 100644 --- a/src/app/search/page.tsx +++ b/src/app/search/page.tsx @@ -155,8 +155,8 @@ export default function SearchPage() { { isLoading ? (

Loading...

- ) : fileMatches.length > 0 ? ( -

{`[${searchDurationMs} ms] Displaying ${numMatches} matches in ${fileMatches.length} ${fileMatches.length > 1 ? 'files' : 'file'}`}

+ ) : fileMatches.length > 0 && searchResponse ? ( +

{`[${searchDurationMs} ms] Displaying ${numMatches} of ${searchResponse.Result.MatchCount} matches in ${fileMatches.length} ${fileMatches.length > 1 ? 'files' : 'file'}`}

) : (

No results

)