fix toggle margin bug
This commit is contained in:
parent
8cdddf4288
commit
32af136ff8
|
@ -469,7 +469,7 @@ const PercentageSelectButtons = ({
|
||||||
const [sizePercentage, setSizePercentage] = useState('')
|
const [sizePercentage, setSizePercentage] = useState('')
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (tokenMax.gt(0) && tokenMax.eq(amountIn)) {
|
if (tokenMax.gt(0) && amountIn && tokenMax.eq(amountIn)) {
|
||||||
setSizePercentage('100')
|
setSizePercentage('100')
|
||||||
}
|
}
|
||||||
}, [amountIn, tokenMax])
|
}, [amountIn, tokenMax])
|
||||||
|
|
Loading…
Reference in New Issue