Skip to content

Commit

Permalink
added back console log for searching
Browse files Browse the repository at this point in the history
  • Loading branch information
zanzoonh committed Oct 27, 2024
1 parent 4e30332 commit 44a6de1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/categories/topics.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module.exports = function (Categories) {
const searchFor = query.toLowerCase();
const matchedTopics = topicsData.filter(topic => topic.title.toLowerCase().includes(searchFor));
const finalTopics = matchedTopics.map(topic => topic.title);
console.log(finalTopics);
return finalTopics;
};

Expand Down

0 comments on commit 44a6de1

Please sign in to comment.