split market name in recent trades
This commit is contained in:
parent
ef144b672f
commit
40aa88590b
|
@ -16,11 +16,11 @@ const RecentTrades = () => {
|
|||
const { selectedMarket, serumOrPerpMarket: market } = useSelectedMarket()
|
||||
|
||||
const baseSymbol = useMemo(() => {
|
||||
return selectedMarket?.name.split('/')[0]
|
||||
return selectedMarket?.name.split(/-|\//)[0]
|
||||
}, [selectedMarket])
|
||||
|
||||
const quoteSymbol = useMemo(() => {
|
||||
return selectedMarket?.name.split('/')[1]
|
||||
return selectedMarket?.name.split(/-|\//)[1]
|
||||
}, [selectedMarket])
|
||||
|
||||
// const fetchRecentTrades = useCallback(async () => {
|
||||
|
|
Loading…
Reference in New Issue