@pear-protocol/symmio-client 0.2.16 → 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.
- package/dist/react/index.js +10 -1
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +10 -1
- package/dist/react/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/react/index.js
CHANGED
|
@@ -24690,6 +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
|
+
const enabled = internalEnabled && (params.query?.enabled ?? true);
|
|
24694
|
+
console.log({
|
|
24695
|
+
symmCoreClient,
|
|
24696
|
+
accountAddress,
|
|
24697
|
+
resolvedAddress,
|
|
24698
|
+
chainId,
|
|
24699
|
+
internalEnabled,
|
|
24700
|
+
enabled
|
|
24701
|
+
});
|
|
24693
24702
|
return reactQuery.useQuery({
|
|
24694
24703
|
...params.query,
|
|
24695
24704
|
queryKey: symmKeys.positions({
|
|
@@ -24702,7 +24711,7 @@ function useSymmPositions(params) {
|
|
|
24702
24711
|
address: resolvedAddress,
|
|
24703
24712
|
chainId
|
|
24704
24713
|
}),
|
|
24705
|
-
enabled
|
|
24714
|
+
enabled
|
|
24706
24715
|
});
|
|
24707
24716
|
}
|
|
24708
24717
|
function useSymmOpenOrders(params) {
|