From 2e4ea28bcf66bee08fe82e1606f752a614684ee0 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 8 Nov 2025 14:18:00 +0000 Subject: [PATCH] Remove unused isOwner variable from Layout cgen-6129c71bbc9f45bb9219c2eb26a9a958 --- client/components/Layout.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/components/Layout.tsx b/client/components/Layout.tsx index ea225921..ec366ce3 100644 --- a/client/components/Layout.tsx +++ b/client/components/Layout.tsx @@ -64,8 +64,7 @@ const ARM_LOGOS: Record = { export default function CodeLayout({ children, hideFooter }: LayoutProps) { const location = useLocation(); const navigate = useNavigate(); - const { user, profile, roles, signOut, loading, profileComplete } = useAuth(); - const isOwner = Array.isArray(roles) && roles.includes("owner"); + const { user, profile, signOut, loading, profileComplete } = useAuth(); const [mobileArmsOpen, setMobileArmsOpen] = useState(false); const navigation = [