@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.cjs
CHANGED
|
@@ -7200,12 +7200,14 @@ function SwypePaymentInner({
|
|
|
7200
7200
|
react.useEffect(() => {
|
|
7201
7201
|
if (pendingOneTapSetupAction && state.step === "setup-status") {
|
|
7202
7202
|
preOneTapSetupStepRef.current = state.step;
|
|
7203
|
-
|
|
7203
|
+
reloadAccounts().then(() => {
|
|
7204
|
+
dispatch({ type: "NAVIGATE", step: "setup" });
|
|
7205
|
+
});
|
|
7204
7206
|
} else if (!pendingOneTapSetupAction && state.step === "setup" && preOneTapSetupStepRef.current) {
|
|
7205
7207
|
dispatch({ type: "NAVIGATE", step: preOneTapSetupStepRef.current });
|
|
7206
7208
|
preOneTapSetupStepRef.current = null;
|
|
7207
7209
|
}
|
|
7208
|
-
}, [pendingOneTapSetupAction, state.step]);
|
|
7210
|
+
}, [pendingOneTapSetupAction, state.step, reloadAccounts]);
|
|
7209
7211
|
const handlers = react.useMemo(() => ({
|
|
7210
7212
|
onSendLoginCode: handleSendLoginCode,
|
|
7211
7213
|
onVerifyLoginCode: handleVerifyLoginCode,
|