Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ensure all promises are only ever resolved once to fix older versions of react native #1037

Conversation

charliecruzan-stripe
Copy link
Collaborator

Summary

Fixed an issue on older version of React Native where calling collectBankAccountForSetup or collectBankAccountForPayment and getting a Canceled result could cause a crash. Simplified some other logic as well around resolving promises

Motivation

fixes a bug reported by a user

Testing

  • I tested this manually
  • I added automated tests

Documentation

Select one:

  • I have added relevant documentation for my changes.
  • This PR does not result in any developer-facing changes.

@charliecruzan-stripe charliecruzan-stripe merged commit ec5df71 into master Jul 12, 2022
@charliecruzan-stripe charliecruzan-stripe deleted the charliecruzan-return-after-resolve-collect-bankaccount branch July 12, 2022 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant