1
0
forked from baron/baron-sso

style: fix formatting issues caught by biome in adminfront

This commit is contained in:
2026-04-21 17:11:08 +09:00
parent 4427ab1f85
commit 7f955e2122
6 changed files with 44 additions and 19 deletions

View File

@@ -80,7 +80,11 @@ function AppLayout() {
};
}, []);
const { data: profile, isLoading: isProfileLoading, error: profileError } = useQuery({
const {
data: profile,
isLoading: isProfileLoading,
error: profileError,
} = useQuery({
queryKey: ["me"],
queryFn: async () => {
console.debug("[AppLayout] Fetching profile...");
@@ -180,11 +184,11 @@ function AppLayout() {
const isTest =
(window as Window & typeof globalThis & { _IS_TEST_MODE?: boolean })
._IS_TEST_MODE === true;
console.debug("[AppLayout] Auth state check:", {
isLoading: auth.isLoading,
isAuthenticated: auth.isAuthenticated,
isTest
isTest,
});
if (!auth.isLoading && !auth.isAuthenticated && !isTest) {