From 67054c9063eb676e25e6cf4b72e1bcb0dc518787 Mon Sep 17 00:00:00 2001 From: Manav Kohli Date: Thu, 13 Aug 2026 09:45:49 +0530 Subject: [PATCH] Fix: allow dynmaic panel roles --- src/components/layout/Header.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");