Display found result text when input char is above 2

This commit is contained in:
Sat Naing
2022-09-16 13:42:34 +06:30
parent d1fa01567d
commit 2fa9d6ee27
+1 -1
View File
@@ -67,7 +67,7 @@ export default function SearchBar({ searchList }: Props) {
/>
</label>
{searchResults && searchResults.length > 0 && (
{inputVal.length > 1 && (
<div className="mt-8">
Found {searchResults?.length}
{searchResults?.length && searchResults?.length > 1