@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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4048,7 +4048,7 @@ function SwypePayment({
|
|
|
4048
4048
|
const hasActiveWallet = accts.some(
|
|
4049
4049
|
(a) => a.wallets.some((w) => w.status === "ACTIVE")
|
|
4050
4050
|
);
|
|
4051
|
-
if ((accts.length === 0 || !hasActiveWallet) && step === "deposit") {
|
|
4051
|
+
if ((accts.length === 0 || !hasActiveWallet) && step === "deposit" && !connectingNewAccount) {
|
|
4052
4052
|
setStep("wallet-picker");
|
|
4053
4053
|
}
|
|
4054
4054
|
} catch (err) {
|
|
@@ -4067,7 +4067,7 @@ function SwypePayment({
|
|
|
4067
4067
|
cancelled = true;
|
|
4068
4068
|
loadingDataRef.current = false;
|
|
4069
4069
|
};
|
|
4070
|
-
}, [authenticated, step, accounts.length, apiBaseUrl, getAccessToken, activeCredentialId, depositAmount]);
|
|
4070
|
+
}, [authenticated, step, accounts.length, apiBaseUrl, getAccessToken, activeCredentialId, depositAmount, connectingNewAccount]);
|
|
4071
4071
|
useEffect(() => {
|
|
4072
4072
|
if (!polling.transfer) return;
|
|
4073
4073
|
if (polling.transfer.status === "COMPLETED") {
|