This commit is contained in:
Philipinho
2024-06-04 21:54:21 +01:00
parent 4501a40c29
commit 942917072b

View File

@ -17,8 +17,8 @@ export default function TopMenu() {
const [currentUser] = useAtom(currentUserAtom);
const { logout } = useAuth();
const user = currentUser.user;
const workspace = currentUser.workspace;
const user = currentUser?.user;
const workspace = currentUser?.workspace;
if (!user || !workspace) {
return <></>;