@swype-org/react-sdk 0.1.68 → 0.1.69

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
@@ -4513,13 +4513,13 @@ function SwypePaymentInner({
4513
4513
  polling.startPolling(persisted.transferId);
4514
4514
  }, [polling]);
4515
4515
  const handleAuthorizedMobileReturn = react.useCallback(async (authorizedTransfer, isSetup) => {
4516
- setTransfer(authorizedTransfer);
4517
4516
  polling.stopPolling();
4518
4517
  if (isSetup) {
4519
4518
  mobileSetupFlowRef.current = false;
4520
4519
  clearMobileFlowState();
4521
4520
  try {
4522
4521
  await reloadAccounts();
4522
+ setTransfer(null);
4523
4523
  setError(null);
4524
4524
  setDeeplinkUri(null);
4525
4525
  setMobileFlow(false);
@@ -4532,6 +4532,7 @@ function SwypePaymentInner({
4532
4532
  }
4533
4533
  return;
4534
4534
  }
4535
+ setTransfer(authorizedTransfer);
4535
4536
  mobileSetupFlowRef.current = false;
4536
4537
  clearMobileFlowState();
4537
4538
  setError(null);