From 39ca090ab29e290bb158f3fd0236788980ef2833 Mon Sep 17 00:00:00 2001 From: Tom Robiquet Date: Tue, 21 May 2024 15:02:30 +0100 Subject: [PATCH] Fix resolved market pricing when pool is deleted --- lib/hooks/queries/useMarketSpotPrices.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/hooks/queries/useMarketSpotPrices.ts b/lib/hooks/queries/useMarketSpotPrices.ts index c9220c323..1c88a72ec 100644 --- a/lib/hooks/queries/useMarketSpotPrices.ts +++ b/lib/hooks/queries/useMarketSpotPrices.ts @@ -38,11 +38,7 @@ export const useMarketSpotPrices = ( const { data: amm2Pool } = useAmm2Pool(marketId); - const enabled = - isRpcSdk(sdk) && - marketId != null && - !!market && - !!(amm2Pool || (pool && basePoolBalance && balances)); + const enabled = isRpcSdk(sdk) && marketId != null && !!market; const query = useQuery( [