@swype-org/react-sdk 0.1.125 → 0.1.126
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 +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7197,12 +7197,14 @@ function SwypePaymentInner({
|
|
|
7197
7197
|
useEffect(() => {
|
|
7198
7198
|
if (pendingOneTapSetupAction && state.step === "setup-status") {
|
|
7199
7199
|
preOneTapSetupStepRef.current = state.step;
|
|
7200
|
-
|
|
7200
|
+
reloadAccounts().then(() => {
|
|
7201
|
+
dispatch({ type: "NAVIGATE", step: "setup" });
|
|
7202
|
+
});
|
|
7201
7203
|
} else if (!pendingOneTapSetupAction && state.step === "setup" && preOneTapSetupStepRef.current) {
|
|
7202
7204
|
dispatch({ type: "NAVIGATE", step: preOneTapSetupStepRef.current });
|
|
7203
7205
|
preOneTapSetupStepRef.current = null;
|
|
7204
7206
|
}
|
|
7205
|
-
}, [pendingOneTapSetupAction, state.step]);
|
|
7207
|
+
}, [pendingOneTapSetupAction, state.step, reloadAccounts]);
|
|
7206
7208
|
const handlers = useMemo(() => ({
|
|
7207
7209
|
onSendLoginCode: handleSendLoginCode,
|
|
7208
7210
|
onVerifyLoginCode: handleVerifyLoginCode,
|