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