diff --git a/src/components/layout/Header.tsx b/src/components/layout/Header.tsx index 05ab8a6..06537ff 100644 --- a/src/components/layout/Header.tsx +++ b/src/components/layout/Header.tsx @@ -11,7 +11,7 @@ import { useAuthRole } from "@/lib/useAuthRole"; const Header = ({ isAdmin = false }: { isAdmin?: boolean }) => { const { role } = useAuthRole(); - const isPanelist = role?.slug === "panelist" || role?.slug === "admin"; + const isPanelist = role?.slug === "admin" || role?.slug?.includes("panel"); const handleGithubClick = () => { window.open("https://github.com/Robotics-PEC", "_blank");