Fix catergory filter
This commit is contained in:
@@ -75,7 +75,7 @@ export default function Home() {
|
||||
})
|
||||
.filter((item) => {
|
||||
if (!selectedCategory) return true;
|
||||
return item.category === selectedCategory;
|
||||
return item.category.toLowerCase() === selectedCategory.toLowerCase();
|
||||
})
|
||||
.filter((item) => {
|
||||
if (!selectedRating) return true;
|
||||
|
||||
Reference in New Issue
Block a user