From 2fa9d6ee27254d9aaddbb5d1a64ad594a1876552 Mon Sep 17 00:00:00 2001 From: Sat Naing Date: Fri, 16 Sep 2022 13:42:34 +0630 Subject: [PATCH] Display found result text when input char is above 2 --- src/components/Search.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Search.tsx b/src/components/Search.tsx index 92096cb..3f05ae2 100644 --- a/src/components/Search.tsx +++ b/src/components/Search.tsx @@ -67,7 +67,7 @@ export default function SearchBar({ searchList }: Props) { /> - {searchResults && searchResults.length > 0 && ( + {inputVal.length > 1 && (
Found {searchResults?.length} {searchResults?.length && searchResults?.length > 1