Skip to content

Commit 4f8e2eb

Browse files
committed
feat: add tags to search term check
1 parent d3324b5 commit 4f8e2eb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apps/web/src/features/instruments/components/InstrumentShowcase/InstrumentShowcase.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ export const InstrumentShowcase: React.FC<{
3636
} else if (selectedTags.length && !selectedTags.some(({ key }) => tags.includes(key))) {
3737
return false;
3838
}
39-
return details.title.toUpperCase().includes(searchTerm.toUpperCase());
39+
console.log(searchTerm);
40+
console.log(tags);
41+
return (
42+
details.title.toUpperCase().includes(searchTerm.toUpperCase()) ||
43+
tags.join().toUpperCase().includes(searchTerm.toUpperCase())
44+
);
4045
});
4146
updatedFilteredInstruments.sort((a, b) => {
4247
return a.details.title.localeCompare(b.details.title);

0 commit comments

Comments
 (0)