From cdf106429333555200496d82afcf2b7d650e8fea Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 12 Apr 2021 13:48:47 +0200 Subject: [PATCH] fix authentication status --- packages/website/src/components/Navigation/Navigation.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/website/src/components/Navigation/Navigation.js b/packages/website/src/components/Navigation/Navigation.js index f0404bdd..c15c9523 100644 --- a/packages/website/src/components/Navigation/Navigation.js +++ b/packages/website/src/components/Navigation/Navigation.js @@ -28,7 +28,8 @@ const Navigation = ({ mode, uri }) => { const [open, setOpen] = React.useState(false); const windowSize = useWindowSize(); const isWindowTop = useWindowTop(); - const { data: authenticated } = useAuthenticatedStatus(); + const { data: authenticationStatus } = useAuthenticatedStatus(); + const authenticated = authenticationStatus?.authenticated ?? false; React.useEffect(() => { setOpen(false);