Skip to content

Commit

Permalink
Fix setting to hide the quick filter bar (#2882)
Browse files Browse the repository at this point in the history
Fixes #2881
  • Loading branch information
ClearlyClaire committed Oct 11, 2024
1 parent 9ee86a7 commit 93fa102
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { Icon } from 'flavours/glitch/components/icon';
import {
selectSettingsNotificationsQuickFilterActive,
selectSettingsNotificationsQuickFilterAdvanced,
selectSettingsNotificationsQuickFilterShow,
} from 'flavours/glitch/selectors/settings';
import { useAppDispatch, useAppSelector } from 'flavours/glitch/store';

Expand Down Expand Up @@ -65,6 +66,11 @@ export const FilterBar: React.FC = () => {
const advancedMode = useAppSelector(
selectSettingsNotificationsQuickFilterAdvanced,
);
const useFilterBar = useAppSelector(
selectSettingsNotificationsQuickFilterShow,
);

if (!useFilterBar) return null;

if (advancedMode)
return (
Expand Down

0 comments on commit 93fa102

Please sign in to comment.