mirror of
https://github.com/docmost/docmost.git
synced 2025-11-13 18:22:36 +10:00
fix type
This commit is contained in:
@ -17,8 +17,8 @@ export default function TopMenu() {
|
|||||||
const [currentUser] = useAtom(currentUserAtom);
|
const [currentUser] = useAtom(currentUserAtom);
|
||||||
const { logout } = useAuth();
|
const { logout } = useAuth();
|
||||||
|
|
||||||
const user = currentUser.user;
|
const user = currentUser?.user;
|
||||||
const workspace = currentUser.workspace;
|
const workspace = currentUser?.workspace;
|
||||||
|
|
||||||
if (!user || !workspace) {
|
if (!user || !workspace) {
|
||||||
return <></>;
|
return <></>;
|
||||||
|
|||||||
Reference in New Issue
Block a user