Case insensitive subscription filter

This commit is contained in:
David Granado 2022-02-01 18:14:59 -06:00 committed by Thomas Zarebczan
parent fc99d85efc
commit 63a3602464

View file

@ -254,7 +254,7 @@ function SideNavigation(props: Props) {
const [subscriptionFilter, setSubscriptionFilter] = React.useState('');
const filteredSubscriptions = subscriptions.filter(
(sub) => !subscriptionFilter || sub.channelName.toLowerCase().includes(subscriptionFilter)
(sub) => !subscriptionFilter || sub.channelName.toLowerCase().includes(subscriptionFilter.toLowerCase())
);
let displayedSubscriptions = filteredSubscriptions;