fix: add correct market url to open orders table

This commit is contained in:
saml33 2021-11-29 22:20:57 +11:00
parent 2e779500ae
commit d565ad5083
1 changed files with 4 additions and 1 deletions

View File

@ -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 (
<Link href={location} shallow={true}>