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 bug where extension does not redirect after signed swap #247

Merged

Conversation

thomaseizinger
Copy link
Contributor

No description provided.

Floating promises make awaiting a function useless because the promise
is just executed in the background and the function returns immediately.
In our case, this led to the onSuccess() handler in the ConfirmSwap component
being called too early and hence the page refreshed at a point where the
old state (i.e. the swap to sign) was still present.

Fixes comit-network#244.
@thomaseizinger thomaseizinger force-pushed the fix-no-redirect-bug branch 3 times, most recently from 7280b7a to 3214855 Compare August 16, 2021 09:01
@thomaseizinger thomaseizinger linked an issue Aug 16, 2021 that may be closed by this pull request
Copy link
Member

@bonomat bonomat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good one, thanks

@thomaseizinger thomaseizinger merged commit 2974343 into comit-network:master Aug 16, 2021
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.

Sign and send in extension is broken
2 participants