fix: Full range button for both tokens
Description This PR is to fix the issue 3843
What was causing the bug?
When the user clicks on the Full Range button, the action setFullRange is dispatched, setting both leftRangeTypedValue and rightRangeTypedValue to true. That causes the useEffect below to execute and since there are always query params of minPrice and maxPrice on first load of the AddLiquidity page
The typeLeftRangeInput and typeRightRangeInput actions will dispatched, therefore setting the min/max price with what's in the query params.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated |
|---|---|---|---|
| interface | ✅ Ready (Inspect) | Visit Preview | Jul 23, 2022 at 9:05AM (UTC) |
thanks for this PR @KevinNeewen! would you be willing to write a test for this behavior?
thanks for this PR @KevinNeewen! would you be willing to write a test for this behavior?
Sure no problem. I'll make a following commit shortly to cover the scenario via jest!
closing for now, but feel free to re-open if a test is added 👍