fix authentication status
This commit is contained in:
parent
a96b929909
commit
cdf1064293
|
@ -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);
|
||||||
|
|
Reference in New Issue