@orderly.network/ui-transfer 3.1.10 → 3.1.11-alpha.0

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.js CHANGED
@@ -2276,6 +2276,9 @@ function useChainSelect() {
2276
2276
  return setChain({
2277
2277
  chainId: utils.int2hex(Number(chainInfo.network_infos?.chain_id))
2278
2278
  }).then((switched) => {
2279
+ if (types.isWalletChainChangePendingResult(switched)) {
2280
+ return;
2281
+ }
2279
2282
  if (switched) {
2280
2283
  ui.toast.success(t("connector.networkSwitched"));
2281
2284
  } else {
@@ -5786,6 +5789,9 @@ var useWithdrawFormScript = (options2) => {
5786
5789
  return switchChain?.({
5787
5790
  chainId: utils.int2hex(Number(chainInfo.network_infos?.chain_id))
5788
5791
  }).then((switched) => {
5792
+ if (types.isWalletChainChangePendingResult(switched)) {
5793
+ return;
5794
+ }
5789
5795
  if (switched) {
5790
5796
  ui.toast.success(t("connector.networkSwitched"));
5791
5797
  cleanData();