fix authentication status

This commit is contained in:
Karol Wypchlo 2021-04-12 13:48:47 +02:00
parent a96b929909
commit cdf1064293
1 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,8 @@ const Navigation = ({ mode, uri }) => {
const [open, setOpen] = React.useState(false); const [open, setOpen] = React.useState(false);
const windowSize = useWindowSize(); const windowSize = useWindowSize();
const isWindowTop = useWindowTop(); const isWindowTop = useWindowTop();
const { data: authenticated } = useAuthenticatedStatus(); const { data: authenticationStatus } = useAuthenticatedStatus();
const authenticated = authenticationStatus?.authenticated ?? false;
React.useEffect(() => { React.useEffect(() => {
setOpen(false); setOpen(false);