Commit 8057cb9f authored by Noah Zinsmeister's avatar Noah Zinsmeister

fix rate toggle clearing add liquidity state

parent 1b798889
......@@ -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}
......
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