From 92239718912fc75bb788f1bb561c2ce5a2d3d93a Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 9 Nov 2018 18:43:41 +0100 Subject: [PATCH] Correcting the authenticated only links logic --- client/src/views/layout/header/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/views/layout/header/index.js b/client/src/views/layout/header/index.js index 1cabf7ceb..ba3a2e107 100644 --- a/client/src/views/layout/header/index.js +++ b/client/src/views/layout/header/index.js @@ -76,7 +76,8 @@ class Header extends Component { let user = JSON.parse(this.state.user) const menus = allMenus.map(({ to, title, submenus, authenticated }, index) => { - if (authenticated) { + console.log(!authenticated) + if (authenticated && !(this.state.user !== undefined && this.state.user !== null)) { return } return ( @@ -90,7 +91,7 @@ class Header extends Component {