fix rate toggle clearing add liquidity state

This commit is contained in:
Noah Zinsmeister 2021-05-05 12:19:21 -04:00
parent 1b798889af
commit 8057cb9fbe
No known key found for this signature in database
GPG Key ID: 83022DD49188C9F2

@ -457,8 +457,11 @@ export default function AddLiquidity({
handleRateToggle={() => {
onLeftRangeInput('')
onRightRangeInput('')
console.log('test')
history.push(`/add/${currencyIdB as string}/${currencyIdA as string}`)
history.push(
`/add/${currencyIdB as string}/${currencyIdA as string}${
feeAmount ? '/' + feeAmount : ''
}`
)
}}
/>
) : null}
@ -499,8 +502,9 @@ export default function AddLiquidity({
handleRateToggle={() => {
onLeftRangeInput('')
onRightRangeInput('')
console.log('test')
history.push(`/add/${currencyIdB as string}/${currencyIdA as string}`)
history.push(
`/add/${currencyIdB as string}/${currencyIdA as string}${feeAmount ? '/' + feeAmount : ''}`
)
}}
/>
) : null}