diff --git a/src/components/Appbar.tsx b/src/components/Appbar.tsx index 92d52d7a7..8bd84452d 100644 --- a/src/components/Appbar.tsx +++ b/src/components/Appbar.tsx @@ -17,10 +17,12 @@ import ProfileDropdown from './profile-menu/ProfileDropdown'; import { ThemeToggler } from './ThemeToggler'; export const Appbar = () => { - const session = useSession(); + const { data: session, status: sessionStatus } = useSession(); const [sidebarOpen, setSidebarOpen] = useRecoilState(sidebarOpenAtom); const currentPath = usePathname(); + const isLoading = sessionStatus === 'loading'; + return ( <>