Commit eb725f51 authored by Yadong Zhang's avatar Yadong Zhang Committed by GitHub

fix: handled liquidity minPrice and maxPrice are empty case. (#4569)

thanks!
parent 4d446236
......@@ -166,6 +166,7 @@ export default function AddLiquidity() {
useEffect(() => {
if (
parsedQs.minPrice &&
typeof parsedQs.minPrice === 'string' &&
parsedQs.minPrice !== leftRangeTypedValue &&
!isNaN(parsedQs.minPrice as any)
......@@ -174,6 +175,7 @@ export default function AddLiquidity() {
}
if (
parsedQs.maxPrice &&
typeof parsedQs.maxPrice === 'string' &&
parsedQs.maxPrice !== rightRangeTypedValue &&
!isNaN(parsedQs.maxPrice as any)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment