fix type
This commit is contained in:
parent
4501a40c29
commit
942917072b
1 changed files with 2 additions and 2 deletions
|
|
@ -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 <></>;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue