Update min character match for search to 2

This commit is contained in:
Sat Naing
2022-09-16 13:41:41 +06:30
parent 7b024d2b96
commit d1fa01567d
+1
View File
@@ -36,6 +36,7 @@ export default function SearchBar({ searchList }: Props) {
const fuse = new Fuse(searchList, {
keys: ["title", "description"],
includeMatches: true,
minMatchCharLength: 2,
threshold: 0.5,
});