From d23e6fe8e9a1b406a761483c8d4c5eaef63cc944 Mon Sep 17 00:00:00 2001 From: maxceem Date: Tue, 29 Sep 2020 14:03:17 +0300 Subject: [PATCH] fix: blank page on mobile ref issue #4137 --- src/components/Footer/Footer.jsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/Footer/Footer.jsx b/src/components/Footer/Footer.jsx index c7ac75ec9..86fab3073 100644 --- a/src/components/Footer/Footer.jsx +++ b/src/components/Footer/Footer.jsx @@ -23,8 +23,6 @@ const Footer = () => { // TODO this looks like a bad way of doing it, I think it should be re-factored const shouldHideOnDesktop = isProjectDetails || isCreateProject || isNotificationsPage || isSettingsPage - // on mobile show footer only when user is logged-out, so only root page is available - const shouldHideOnMobile = window.location.pathname !== '/' return ( @@ -39,9 +37,8 @@ const Footer = () => { ) } else { - return (shouldHideOnMobile ? null : - {/**/} - ) + {/* never show footer on mobile */} + return null } }}