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 (