Skip to content

Fix 9906 - Prevent unwanted 'no quotes available' message when going back to build quote screen while having insufficient funds#9958

Closed
darkwing wants to merge 1 commit intoMetaMask:developfrom
darkwing:fix-9906
Closed

Fix 9906 - Prevent unwanted 'no quotes available' message when going back to build quote screen while having insufficient funds#9958
darkwing wants to merge 1 commit intoMetaMask:developfrom
darkwing:fix-9906

Conversation

@darkwing
Copy link
Copy Markdown
Contributor

Fixes: #9906

Explanation: As I detailed in #9906's comments, there's a timing conflict between going back to the build screen and the balanceError being reset. See comments for details.

Manual testing steps:

  • Create a swap where you have an insufficient balance.
  • When swap view comes up, click "Back" in the footer
  • Change nothing, click "Swap" again
  • Before this PR, the swap would show "No quotes available" error; with this PR applied, the swap view should display again.

@darkwing darkwing requested a review from danjm November 30, 2020 18:55
@darkwing darkwing requested a review from a team as a code owner November 30, 2020 18:55
@github-actions
Copy link
Copy Markdown
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is it necessary to remove the async and await? I'm not sure what the side effects might be, given that navigateBackToBuildQuote returns an async function

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The async/await is having no effect; if you hover over await in your text editor, the linter is saying that it in't necessary, thus the call isn't useful.

…ack to build quote screen while having insufficient funds
@darkwing darkwing closed this Dec 3, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Dec 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: swaps shows no quotes available when trying to get quotes after first viewing a quote you can't afford

2 participants