diff --git a/src/client/routes/settings/profile.tsx b/src/client/routes/settings/profile.tsx
index 5471a6e..a572f4e 100644
--- a/src/client/routes/settings/profile.tsx
+++ b/src/client/routes/settings/profile.tsx
@@ -37,7 +37,7 @@ function PageComponent() {
- {userInfo?.currentWorkspace?.id}
+ {userInfo?.currentWorkspaceId}
diff --git a/src/client/routes/switchWorkspace.tsx b/src/client/routes/switchWorkspace.tsx
index fab5d05..8912b9a 100644
--- a/src/client/routes/switchWorkspace.tsx
+++ b/src/client/routes/switchWorkspace.tsx
@@ -16,6 +16,7 @@ import {
import { WorkspaceSwitcher } from '@/components/WorkspaceSwitcher';
import { Button } from '@/components/ui/button';
import { useEvent } from '@/hooks/useEvent';
+import { useAuth } from '@/api/authjs/useAuth';
export const Route = createFileRoute('/switchWorkspace')({
validateSearch: z.object({
@@ -45,6 +46,7 @@ function PageComponent() {
const currentWorkspace = useCurrentWorkspaceSafe();
const search = Route.useSearch();
const navigate = useNavigate();
+ const { logout } = useAuth();
const handleEnter = useEvent(() => {
navigate({
@@ -66,13 +68,14 @@ function PageComponent() {
- {currentWorkspace && (
-
-
-
- )}
+
+
+
+
);