@swype-org/react-sdk 0.1.44 → 0.1.45

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.cjs CHANGED
@@ -4051,7 +4051,7 @@ function SwypePayment({
4051
4051
  const hasActiveWallet = accts.some(
4052
4052
  (a) => a.wallets.some((w) => w.status === "ACTIVE")
4053
4053
  );
4054
- if ((accts.length === 0 || !hasActiveWallet) && step === "deposit") {
4054
+ if ((accts.length === 0 || !hasActiveWallet) && step === "deposit" && !connectingNewAccount) {
4055
4055
  setStep("wallet-picker");
4056
4056
  }
4057
4057
  } catch (err) {
@@ -4070,7 +4070,7 @@ function SwypePayment({
4070
4070
  cancelled = true;
4071
4071
  loadingDataRef.current = false;
4072
4072
  };
4073
- }, [authenticated, step, accounts.length, apiBaseUrl, getAccessToken, activeCredentialId, depositAmount]);
4073
+ }, [authenticated, step, accounts.length, apiBaseUrl, getAccessToken, activeCredentialId, depositAmount, connectingNewAccount]);
4074
4074
  react.useEffect(() => {
4075
4075
  if (!polling.transfer) return;
4076
4076
  if (polling.transfer.status === "COMPLETED") {