diff --git a/src/Agent/AutopilotMonitor.Agent/buildcounter.txt b/src/Agent/AutopilotMonitor.Agent/buildcounter.txt index f6b91e0e..e1617e84 100644 --- a/src/Agent/AutopilotMonitor.Agent/buildcounter.txt +++ b/src/Agent/AutopilotMonitor.Agent/buildcounter.txt @@ -1 +1 @@ -56 +57 diff --git a/src/Web/autopilot-monitor-web/components/PublicSiteNavbar.tsx b/src/Web/autopilot-monitor-web/components/PublicSiteNavbar.tsx index 1bdeca25..c4a25cc1 100644 --- a/src/Web/autopilot-monitor-web/components/PublicSiteNavbar.tsx +++ b/src/Web/autopilot-monitor-web/components/PublicSiteNavbar.tsx @@ -5,10 +5,15 @@ import { useAuth } from "../contexts/AuthContext"; import { useTheme } from "../contexts/ThemeContext"; export function PublicSiteNavbar({ showSectionLinks }: { showSectionLinks: boolean }) { - const { login } = useAuth(); + const { login, isAuthenticated } = useAuth(); const { theme, toggleTheme } = useTheme(); const isDark = theme === "dark"; + // Logged-in users should only see the main authenticated app navbar. + if (isAuthenticated) { + return null; + } + return (