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() { ...@@ -166,6 +166,7 @@ export default function AddLiquidity() {
useEffect(() => { useEffect(() => {
if ( if (
parsedQs.minPrice &&
typeof parsedQs.minPrice === 'string' && typeof parsedQs.minPrice === 'string' &&
parsedQs.minPrice !== leftRangeTypedValue && parsedQs.minPrice !== leftRangeTypedValue &&
!isNaN(parsedQs.minPrice as any) !isNaN(parsedQs.minPrice as any)
...@@ -174,6 +175,7 @@ export default function AddLiquidity() { ...@@ -174,6 +175,7 @@ export default function AddLiquidity() {
} }
if ( if (
parsedQs.maxPrice &&
typeof parsedQs.maxPrice === 'string' && typeof parsedQs.maxPrice === 'string' &&
parsedQs.maxPrice !== rightRangeTypedValue && parsedQs.maxPrice !== rightRangeTypedValue &&
!isNaN(parsedQs.maxPrice as any) !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