From af37b05ab1bfd9a85a5f05a1d0f0e5fe03190503 Mon Sep 17 00:00:00 2001 From: trafficlunar Date: Tue, 21 Apr 2026 20:42:10 +0100 Subject: [PATCH] fix: build errors --- frontend/src/pages/profile/layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/profile/layout.tsx b/frontend/src/pages/profile/layout.tsx index a2c4987..4c6f3a0 100644 --- a/frontend/src/pages/profile/layout.tsx +++ b/frontend/src/pages/profile/layout.tsx @@ -13,7 +13,7 @@ export default function ProfileLayout() { const [loading, setLoading] = useState(true); const $session = useStore(session); - const userId = Number($session ? id : $session?.user?.id); + const userId = Number(id ?? $session?.user?.id); useEffect(() => { if ($session === undefined) return; // session still loading