@orderly.network/wallet-connector-privy 2.8.10 → 2.8.11-alpha.1

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
@@ -562,8 +562,7 @@ var SolanaWalletProvider = ({
562
562
  isManual
563
563
  } = useSolanaWalletStore();
564
564
  React19.useEffect(() => {
565
- if (!walletSolana || isManual)
566
- return;
565
+ if (!walletSolana || isManual) return;
567
566
  if (!publicKey) {
568
567
  return;
569
568
  }
@@ -1656,10 +1655,8 @@ function RenderConnector() {
1656
1655
  } = useWalletConnectorPrivy();
1657
1656
  const { storageChain } = hooks.useStorageChain();
1658
1657
  const selectedWalletType = (() => {
1659
- if (targetWalletType)
1660
- return targetWalletType;
1661
- if (!storageChain?.chainId)
1662
- return void 0;
1658
+ if (targetWalletType) return targetWalletType;
1659
+ if (!storageChain?.chainId) return void 0;
1663
1660
  try {
1664
1661
  return getChainType(parseInt(storageChain.chainId));
1665
1662
  } catch {
@@ -3339,13 +3336,11 @@ function WalletConnectorPrivyProvider(props) {
3339
3336
  fetchData: fetchSwapData
3340
3337
  } = hooks.useSwapSupportStore();
3341
3338
  React19.useEffect(() => {
3342
- if (!props.enableSwapDeposit || !!props.customChains)
3343
- return;
3339
+ if (!props.enableSwapDeposit || !!props.customChains) return;
3344
3340
  fetchSwapData();
3345
3341
  }, [props.enableSwapDeposit, props.customChains]);
3346
3342
  React19.useEffect(() => {
3347
- if (!mainnetChainsHydrated || !testChainsHydrated)
3348
- return;
3343
+ if (!mainnetChainsHydrated || !testChainsHydrated) return;
3349
3344
  if (Array.isArray(hooks.useMainnetChainsStore.getState().data) && hooks.useTestnetChainsStore.getState().data) {
3350
3345
  return;
3351
3346
  }
@@ -3438,8 +3433,7 @@ function WalletConnectorPrivyProvider(props) {
3438
3433
  ]
3439
3434
  );
3440
3435
  React19.useEffect(() => {
3441
- if (initRef.current)
3442
- return;
3436
+ if (initRef.current) return;
3443
3437
  if (hasCustomChains) {
3444
3438
  return;
3445
3439
  }
@@ -3518,5 +3512,5 @@ exports.useWalletConnectorPrivy = useWalletConnectorPrivy;
3518
3512
  exports.viem = viem;
3519
3513
  exports.wagmi = wagmi;
3520
3514
  exports.wagmiConnectors = wagmiConnectors;
3521
- //# sourceMappingURL=out.js.map
3515
+ //# sourceMappingURL=index.js.map
3522
3516
  //# sourceMappingURL=index.js.map