fix: add correct market url to open orders table
This commit is contained in:
parent
2e779500ae
commit
d565ad5083
|
@ -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}>
|
||||
|
|
Loading…
Reference in New Issue