@orderly.network/hooks 0.0.58 → 0.0.59

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
@@ -2590,13 +2590,15 @@ var useChains = (networkId, options = {}) => {
2590
2590
  if (orderlyChainIds.has(chain.network_infos.chain_id)) {
2591
2591
  orderlyChainsArr = orderlyChainsArr.map((item2) => {
2592
2592
  if (item2.network_infos.chain_id === chain.network_infos.chain_id) {
2593
- return {
2593
+ const mergedChain = {
2594
+ ...item2,
2594
2595
  network_infos: {
2595
2596
  ...item2.network_infos,
2596
2597
  ...chain.network_infos
2597
2598
  },
2598
2599
  token_infos: chain.token_infos
2599
2600
  };
2601
+ map.current.set(chain.network_infos.chain_id, mergedChain);
2600
2602
  }
2601
2603
  return item2;
2602
2604
  });