diff --git a/packages/core/src/App/Components/Layout/Header/menu-links.jsx b/packages/core/src/App/Components/Layout/Header/menu-links.jsx index 6b09e97429d1..cdcc806ed1d8 100644 --- a/packages/core/src/App/Components/Layout/Header/menu-links.jsx +++ b/packages/core/src/App/Components/Layout/Header/menu-links.jsx @@ -85,18 +85,17 @@ const CashierTab = observer(() => { ); }); -const MenuLinks = observer(() => { +const MenuLinks = observer(({ is_traders_hub_routes = false }) => { const { i18n } = useTranslation(); const { client, ui } = useStore(); const { is_logged_in } = client; const { is_mobile } = ui; - const is_traders_hub = window.location.pathname === routes.traders_hub; if (!is_logged_in) return <>; return (
- {!is_traders_hub && } + {!is_traders_hub_routes && } {!is_mobile && }
); diff --git a/packages/core/src/App/Containers/Layout/header/trading-hub-header.jsx b/packages/core/src/App/Containers/Layout/header/trading-hub-header.jsx index c5453df45a17..87150443f19e 100644 --- a/packages/core/src/App/Containers/Layout/header/trading-hub-header.jsx +++ b/packages/core/src/App/Containers/Layout/header/trading-hub-header.jsx @@ -156,7 +156,7 @@ const TradingHubHeader = ({ - +