diff --git a/packages/pl-fe/src/components/dropdown-navigation.tsx b/packages/pl-fe/src/components/dropdown-navigation.tsx index b991efb0d..d9521402d 100644 --- a/packages/pl-fe/src/components/dropdown-navigation.tsx +++ b/packages/pl-fe/src/components/dropdown-navigation.tsx @@ -70,14 +70,14 @@ const DropdownNavigation: React.FC = React.memo((): JSX.Element | null => { const { closeSidebar } = useUiStoreActions(); const me = useAppSelector((state) => state.me); + const features = useFeatures(); const authenticatedScheduledStatusesCountQueryOptions = useMemo(() => ({ ...scheduledStatusesCountQueryOptions, - enabled: !!me, - }), [me]); + enabled: !!me && features.scheduledStatuses, + }), [me, features]); const getOtherAccounts = useCallback(makeGetOtherAccounts(), []); - const features = useFeatures(); const { account } = useAccount(me || undefined); const otherAccounts = useAppSelector((state) => getOtherAccounts(state)); const settings = useSettings(); diff --git a/packages/pl-fe/src/components/sidebar-navigation.tsx b/packages/pl-fe/src/components/sidebar-navigation.tsx index a4e4ac894..854f109f4 100644 --- a/packages/pl-fe/src/components/sidebar-navigation.tsx +++ b/packages/pl-fe/src/components/sidebar-navigation.tsx @@ -64,8 +64,8 @@ const SidebarNavigation: React.FC = React.memo(({ shrink }) const authenticatedScheduledStatusesCountQueryOptions = useMemo(() => ({ ...scheduledStatusesCountQueryOptions, - enabled: !!account, - }), [!!account]); + enabled: !!account && features.scheduledStatuses, + }), [!!account, features]); const notificationCount = useAppSelector((state) => state.notifications.unread); const followRequestsCount = useFollowRequestsCount().data || 0;