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

Cancel fee calculation on input #1239

Merged
merged 1 commit into from
Dec 20, 2019
Merged

Cancel fee calculation on input #1239

merged 1 commit into from
Dec 20, 2019

Conversation

SebastienGllmt
Copy link
Contributor

@SebastienGllmt SebastienGllmt commented Dec 19, 2019

This should fix two issues with the send screen "amount" field:

  1. The debounce was too short and sometimes started calculating the tx fee while you were still typing in numbers. 500 seemed to do much better

  2. Instead of awaiting for the current fee calculation to end before starting the next one, I just cancel the request. The "cancel" feature doesn't actually cancel the request -- is just indicates that the result should be discarded whenever it's done. This is much easier than actually making it cancelable.

@SebastienGllmt SebastienGllmt added the bug (confirmed) Bug with repro steps or logs label Dec 19, 2019
@SebastienGllmt SebastienGllmt self-assigned this Dec 19, 2019
@SebastienGllmt SebastienGllmt merged commit 8c9d3e0 into shelley Dec 20, 2019
@SebastienGllmt SebastienGllmt deleted the cancel-on-input branch December 20, 2019 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug (confirmed) Bug with repro steps or logs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant