Skip to content

Commit

Permalink
Merge pull request #2424 from zeitgeistpm/tr-fix-resolved-market-prices
Browse files Browse the repository at this point in the history
Fix resolved market pricing when pool is deleted
  • Loading branch information
Robiquet authored May 28, 2024
2 parents f782b30 + 39ca090 commit b6c4bd8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/hooks/queries/useMarketSpotPrices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
[
Expand Down

0 comments on commit b6c4bd8

Please sign in to comment.