only call perp history if market is perp market
This commit is contained in:
parent
a2b482cbe8
commit
7c59a1c4fa
|
@ -87,7 +87,7 @@ const RecentTrades = () => {
|
|||
{
|
||||
cacheTime: 1000 * 60 * 15,
|
||||
staleTime: 0,
|
||||
enabled: !!selectedMarketAddress,
|
||||
enabled: !!selectedMarketAddress && market instanceof PerpMarket,
|
||||
refetchOnWindowFocus: true,
|
||||
refetchInterval: 1000 * 10,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue