From eceb2895623cffefc65671fdfc343fa5e4c01cdb Mon Sep 17 00:00:00 2001 From: Shoubhit Dash Date: Wed, 30 Nov 2022 06:43:02 +0000 Subject: [PATCH] fix: should be 0 results not result --- src/components/Search.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Search.tsx b/src/components/Search.tsx index 7f6fa6f..9661181 100644 --- a/src/components/Search.tsx +++ b/src/components/Search.tsx @@ -97,9 +97,9 @@ export default function SearchBar({ searchList }: Props) { {inputVal.length > 1 && (
Found {searchResults?.length} - {searchResults?.length && searchResults?.length > 1 - ? " results" - : " result"}{" "} + {searchResults?.length && searchResults?.length === 1 + ? " result" + : " results"}{" "} for '{inputVal}'
)}