only call perp history if market is perp market

This commit is contained in:
tjs 2023-03-31 16:49:33 -04:00
parent a2b482cbe8
commit 7c59a1c4fa
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ const RecentTrades = () => {
{
cacheTime: 1000 * 60 * 15,
staleTime: 0,
enabled: !!selectedMarketAddress,
enabled: !!selectedMarketAddress && market instanceof PerpMarket,
refetchOnWindowFocus: true,
refetchInterval: 1000 * 10,
}