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: hide toolbar when insufficient liquidity #558

Merged
merged 2 commits into from
Mar 14, 2023

Conversation

just-toby
Copy link
Collaborator

it's redundant to show "error fetching trade" when we know the error - there's not enough liquidity to calculate a trade between these tokens. in this case we should just hide the toolbar.

https://www.notion.so/uniswaplabs/Generic-error-fetching-trade-when-the-error-state-is-insufficient-liquidity-and-displayed-in-the-9d04b1253f38425b89b3edfa0b5927ec?pvs=4

test plan

image

@just-toby just-toby requested review from a team and zzmp and removed request for a team March 13, 2023 23:51
@vercel
Copy link

vercel bot commented Mar 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
widgets ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 14, 2023 at 8:26PM (UTC)

@vercel vercel bot temporarily deployed to Preview March 13, 2023 23:51 Inactive
src/components/Swap/Toolbar/index.tsx Outdated Show resolved Hide resolved
@vercel vercel bot temporarily deployed to Preview March 14, 2023 20:26 Inactive
@just-toby just-toby merged commit e3c9a20 into main Mar 14, 2023
@just-toby just-toby deleted the fix/insufficient-liquidity branch March 14, 2023 20:36
@github-actions
Copy link

🎉 This PR is included in version 2.48.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants