diff --git a/src/components/Searchbar/pinned-searchbar.tsx b/src/components/Searchbar/pinned-searchbar.tsx index f70f3b4..1a64d0e 100644 --- a/src/components/Searchbar/pinned-searchbar.tsx +++ b/src/components/Searchbar/pinned-searchbar.tsx @@ -40,7 +40,6 @@ function PinnedSearchBar({ if (text.length > 1 && initialSubjects.length > 0) { const filteredSuggestions = fuzzy .search(text) - .sort((a, b) => (a.score ?? Infinity) - (b.score ?? Infinity)) .map((res) => res.item.name) .slice(0, 10); diff --git a/src/components/Searchbar/searchbar-child.tsx b/src/components/Searchbar/searchbar-child.tsx index f6170d3..1ac2e68 100644 --- a/src/components/Searchbar/searchbar-child.tsx +++ b/src/components/Searchbar/searchbar-child.tsx @@ -38,7 +38,6 @@ function SearchBarChild({ }), ); } - console.log(initialSubjects); }, [initialSubjects]); const handleSearchChange = (e: React.ChangeEvent) => { @@ -48,7 +47,6 @@ function SearchBarChild({ if (text.length > 1 && initialSubjects.length > 0) { const filteredSuggestions = fuzzy .search(text) - .sort((a, b) => (a.score ?? Infinity) - (b.score ?? Infinity)) .map((res) => res.item) .slice(0, 10);