fix toggle margin bug

This commit is contained in:
saml33 2022-09-14 10:19:56 +10:00
parent 8cdddf4288
commit 32af136ff8
1 changed files with 1 additions and 1 deletions

View File

@ -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])