Skip to content

Commit

Permalink
fix channel search
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinfuchs committed Apr 30, 2024
1 parent bfbd04e commit 1414462
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion embedg-app/src/components/ChannelSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ export function ChannelSelect({ guildId, channelId, onChange }: Props) {
const q = query.toLowerCase();
if (!q) return channels;

return channels.filter((c) => c.id === q || c.name.includes(q));
return channels.filter(
(c) => c.id === q || c.name.toLowerCase().includes(q)
);
}, [channels, query]);

const channel = useMemo(
Expand Down

0 comments on commit 1414462

Please sign in to comment.