diff --git a/app/components/App.js b/app/components/App.js index ca609924bd60580c6565fa533787dbf3a73d1b2f..54590c6a2abc80f84d080aa77f8fec54fac4ddd6 100644 --- a/app/components/App.js +++ b/app/components/App.js @@ -49,13 +49,15 @@ const App = ({ links = showLinks ? [ <Action - active={(window.location.pathname === submitLink).toString()} + active={window.location.pathname === submitLink ? 'active' : null} to={submitLink} > Summary Info </Action>, <Action - active={(window.location.pathname === manuscriptLink).toString()} + active={ + window.location.pathname === manuscriptLink ? 'active' : null + } to={manuscriptLink} > Manuscript @@ -67,7 +69,7 @@ const App = ({ if (authorized) { links.push( <Action - active={(window.location.pathname === '/teams').toString()} + active={window.location.pathname === '/teams' ? 'active' : null} to="/teams" > Team Manager