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