@pear-protocol/symmio-client 0.2.17 → 0.2.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24690,7 +24690,15 @@ function useSymmPositions(params) {
24690
24690
  const resolvedAddress = accountAddress ? void 0 : address;
24691
24691
  const chainId = params.chainId ?? ctxChainId;
24692
24692
  const internalEnabled = !!symmCoreClient && !!(accountAddress || resolvedAddress);
24693
- console.log({ accountAddress, resolvedAddress, chainId, internalEnabled });
24693
+ const enabled = internalEnabled && (params.query?.enabled ?? true);
24694
+ console.log({
24695
+ symmCoreClient,
24696
+ accountAddress,
24697
+ resolvedAddress,
24698
+ chainId,
24699
+ internalEnabled,
24700
+ enabled
24701
+ });
24694
24702
  return reactQuery.useQuery({
24695
24703
  ...params.query,
24696
24704
  queryKey: symmKeys.positions({
@@ -24703,7 +24711,7 @@ function useSymmPositions(params) {
24703
24711
  address: resolvedAddress,
24704
24712
  chainId
24705
24713
  }),
24706
- enabled: internalEnabled && (params.query?.enabled ?? true)
24714
+ enabled
24707
24715
  });
24708
24716
  }
24709
24717
  function useSymmOpenOrders(params) {