Skip to content

Commit

Permalink
fix: ensure search query is lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
ferothefox authored Jun 25, 2023
1 parent f55acc8 commit ab14f98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function MainPage() {

const [sortedThemes, sortedPresets] = useMemo(() => {
const filteredAll = themes.filter(
(e) => e.name.toLowerCase().includes(search) || e.author.toLowerCase().includes(search)
(e) => e.name.toLowerCase().includes(search.toLowerCase()) || e.author.toLowerCase().includes(search)
);
const sortedAll = filteredAll.sort((a, b) => {
switch (sortValue) {
Expand Down

0 comments on commit ab14f98

Please sign in to comment.