-
diff --git a/frontend2/src/components/Header.tsx b/frontend2/src/components/Header.tsx
index 7f9e4c1af..356d04dff 100644
--- a/frontend2/src/components/Header.tsx
+++ b/frontend2/src/components/Header.tsx
@@ -1,14 +1,14 @@
-import React, { Fragment, useContext } from "react";
+import React, { Fragment } from "react";
import { Menu, Transition } from "@headlessui/react";
import { Link, NavLink } from "react-router-dom";
import { AuthStateEnum, useCurrentUser } from "../contexts/CurrentUserContext";
import Icon from "./elements/Icon";
-import { EpisodeContext } from "../contexts/EpisodeContext";
+import { useEpisodeId } from "../contexts/EpisodeContext";
import { SIDEBAR_ITEM_DATA } from "./sidebar";
const Header: React.FC = () => {
const { authState, logout, user } = useCurrentUser();
- const { episodeId } = useContext(EpisodeContext);
+ const { episodeId } = useEpisodeId();
return (