From e3a25b6ceb4fb08f01ce462dc79092193cfc174a Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Thu, 13 Jan 2022 11:51:23 +0100 Subject: [PATCH] temporary backwards compatibility code --- packages/website/src/components/Navigation/Navigation.js | 4 ++-- packages/website/src/components/Uploader/Uploader.js | 6 ++++-- packages/website/src/services/useAccounts.js | 6 +++++- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/packages/website/src/components/Navigation/Navigation.js b/packages/website/src/components/Navigation/Navigation.js index 5e0c5ec4..ab96ab2a 100644 --- a/packages/website/src/components/Navigation/Navigation.js +++ b/packages/website/src/components/Navigation/Navigation.js @@ -41,8 +41,8 @@ const Navigation = ({ mode, uri }) => { }, [open]); const mobileMenuOffset = navRef.current ? navRef.current.offsetTop : 0; - const showLoginNavigation = accounts?.enabled && !accounts?.authenticated; - const showAccountNavigation = accounts?.enabled && accounts?.authenticated; + const showLoginNavigation = accounts && accounts.enabled !== false && !accounts?.authenticated; + const showAccountNavigation = accounts && accounts.enabled !== false && accounts?.authenticated; return (