Skip to content

Commit bbad3e9

Browse files
authored
refactor(sidebar): combine useContext (#1013)
1 parent da2bf1c commit bbad3e9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/Sidebar.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ export const Sidebar: FC = () => {
1919
const navigate = useNavigate();
2020
const location = useLocation();
2121

22-
const { isLoggedIn } = useContext(AppContext);
23-
const { notifications, fetchNotifications, isFetching } =
22+
const { notifications, fetchNotifications, isLoggedIn, isFetching } =
2423
useContext(AppContext);
2524

2625
const onOpenBrowser = useCallback(() => {

0 commit comments

Comments
 (0)