From d565ad50834bd3c986109b63697abb85933916c6 Mon Sep 17 00:00:00 2001 From: saml33 Date: Mon, 29 Nov 2021 22:20:57 +1100 Subject: [PATCH] fix: add correct market url to open orders table --- components/OpenOrdersTable.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/OpenOrdersTable.tsx b/components/OpenOrdersTable.tsx index c31a41b5..4a3d09c3 100644 --- a/components/OpenOrdersTable.tsx +++ b/components/OpenOrdersTable.tsx @@ -25,7 +25,10 @@ const DesktopTable = ({ openOrders, cancelledOrderId, handleCancelOrder }) => { const { t } = useTranslation('common') const { asPath } = useRouter() const renderMarketName = (market: MarketConfig) => { - const location = `/${market.kind}/${market.baseSymbol}` + const location = + market.kind === 'spot' + ? `/market?name=${market.baseSymbol}%2FUSDC` + : `/market?name=${market.name}` if (!asPath.includes(location)) { return (