@pear-protocol/hyperliquid-sdk 0.0.67 → 0.0.68

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -673,6 +673,12 @@ const useHyperliquidNativeWebSocket = ({ address, enabled = true, }) => {
673
673
  break;
674
674
  case 'allDexsClearinghouseState':
675
675
  {
676
+ // If the user is not authenticated, ignore clearinghouse state to avoid
677
+ // populating summaries with the default zero address data.
678
+ if (!address) {
679
+ setAggregatedClearingHouseState(null);
680
+ break;
681
+ }
676
682
  const data = response.data;
677
683
  const states = (data.clearinghouseStates || [])
678
684
  .map(([, s]) => s)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pear-protocol/hyperliquid-sdk",
3
- "version": "0.0.67",
3
+ "version": "0.0.68",
4
4
  "description": "React SDK for Pear Protocol Hyperliquid API integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",