diff --git a/src/components/navitem.tsx b/src/components/navitem.tsx index 80a54094..e1595950 100644 --- a/src/components/navitem.tsx +++ b/src/components/navitem.tsx @@ -22,8 +22,10 @@ export const NavItem = ({ if (!session.data?.user && isPrivate) { return; } - if (session && roleRequired && session.data?.user.role !== roleRequired) + if (session && roleRequired && session.data?.user.role !== roleRequired) { return; + } + return (