fix(trading): skip market data query if market not present (#3928)

This commit is contained in:
Bartłomiej Głownia 2023-05-25 11:37:33 +02:00 committed by GitHub
parent bbd1536c18
commit e4d4646878
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ export const MarketMarkPrice = ({
{
dataProvider: marketDataProvider,
variables: { marketId: marketId || '' },
skip: !inView,
skip: !inView || !marketId,
},
THROTTLE_UPDATE_TIME
);