Skip to content

Commit

Permalink
fix: remove create timetable button on /finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
skoriop committed Dec 22, 2024
1 parent 833ea4f commit c3ed8e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ export function NavBar() {
const stateRouter = useRouter();
const isCMSPage =
stateRouter.state.resolvedLocation.pathname.includes("/CMS");
const isEditPage = stateRouter.state.resolvedLocation.pathname.includes(
"/edit/" || "/finalize/",
);
const isEditPage =
stateRouter.state.resolvedLocation.pathname.includes("/edit/") ||
stateRouter.state.resolvedLocation.pathname.includes("/finalize/");

const [_cookies, _setCookie, removeCookie] = useCookies(["session"]);
const userQueryResult = useQuery(userQueryOptions);
Expand Down

0 comments on commit c3ed8e5

Please sign in to comment.