@orderly.network/wallet-connector-privy 2.8.10 → 2.8.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.mjs CHANGED
@@ -537,8 +537,7 @@ var SolanaWalletProvider = ({
537
537
  isManual
538
538
  } = useSolanaWalletStore();
539
539
  useEffect(() => {
540
- if (!walletSolana || isManual)
541
- return;
540
+ if (!walletSolana || isManual) return;
542
541
  if (!publicKey) {
543
542
  return;
544
543
  }
@@ -1631,10 +1630,8 @@ function RenderConnector() {
1631
1630
  } = useWalletConnectorPrivy();
1632
1631
  const { storageChain } = useStorageChain();
1633
1632
  const selectedWalletType = (() => {
1634
- if (targetWalletType)
1635
- return targetWalletType;
1636
- if (!storageChain?.chainId)
1637
- return void 0;
1633
+ if (targetWalletType) return targetWalletType;
1634
+ if (!storageChain?.chainId) return void 0;
1638
1635
  try {
1639
1636
  return getChainType(parseInt(storageChain.chainId));
1640
1637
  } catch {
@@ -3314,13 +3311,11 @@ function WalletConnectorPrivyProvider(props) {
3314
3311
  fetchData: fetchSwapData
3315
3312
  } = useSwapSupportStore();
3316
3313
  useEffect(() => {
3317
- if (!props.enableSwapDeposit || !!props.customChains)
3318
- return;
3314
+ if (!props.enableSwapDeposit || !!props.customChains) return;
3319
3315
  fetchSwapData();
3320
3316
  }, [props.enableSwapDeposit, props.customChains]);
3321
3317
  useEffect(() => {
3322
- if (!mainnetChainsHydrated || !testChainsHydrated)
3323
- return;
3318
+ if (!mainnetChainsHydrated || !testChainsHydrated) return;
3324
3319
  if (Array.isArray(useMainnetChainsStore.getState().data) && useTestnetChainsStore.getState().data) {
3325
3320
  return;
3326
3321
  }
@@ -3413,8 +3408,7 @@ function WalletConnectorPrivyProvider(props) {
3413
3408
  ]
3414
3409
  );
3415
3410
  useEffect(() => {
3416
- if (initRef.current)
3417
- return;
3411
+ if (initRef.current) return;
3418
3412
  if (hasCustomChains) {
3419
3413
  return;
3420
3414
  }
@@ -3480,5 +3474,5 @@ var wagmiConnectors = WagmiConnectorsExport;
3480
3474
  var wagmi = WagmiExport;
3481
3475
 
3482
3476
  export { AbstractChainsMap, MwebUserCenter, Network, SolanaChains, SolanaChainsMap, UserCenter, WalletChainTypeEnum, WalletConnectType, WalletConnectorPrivyProvider, WalletType, useWalletConnectorPrivy, viem, wagmi, wagmiConnectors };
3483
- //# sourceMappingURL=out.js.map
3477
+ //# sourceMappingURL=index.mjs.map
3484
3478
  //# sourceMappingURL=index.mjs.map