@orderly.network/hooks 0.0.57 → 0.0.58

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/index.mjs CHANGED
@@ -9,7 +9,7 @@ import { SimpleDI, Account, EventEmitter, utils } from '@orderly.network/core';
9
9
  import { AccountStatusEnum, OrderSide, chainsMap, OrderStatus as OrderStatus$1, OrderType } from '@orderly.network/types';
10
10
  import useSWRSubscription from 'swr/subscription';
11
11
  import { Decimal, zero, getPrecisionByNumber, timeConvertString } from '@orderly.network/utils';
12
- import { pathOr, propOr, compose, head, prop, mergeDeepLeft, pick } from 'ramda';
12
+ import { pathOr, propOr, compose, head, prop, pick } from 'ramda';
13
13
  import { positions, account, order } from '@orderly.network/futures';
14
14
  import useSWRInfinite from 'swr/infinite';
15
15
  export * from 'use-debounce';
@@ -2591,9 +2591,11 @@ var useChains = (networkId, options = {}) => {
2591
2591
  orderlyChainsArr = orderlyChainsArr.map((item2) => {
2592
2592
  if (item2.network_infos.chain_id === chain.network_infos.chain_id) {
2593
2593
  return {
2594
- // ...item,
2595
- // ...chain,
2596
- ...mergeDeepLeft(chain, item2)
2594
+ network_infos: {
2595
+ ...item2.network_infos,
2596
+ ...chain.network_infos
2597
+ },
2598
+ token_infos: chain.token_infos
2597
2599
  };
2598
2600
  }
2599
2601
  return item2;