From 6457b98c02ea56f7d140d5f36f88df65563502ed Mon Sep 17 00:00:00 2001 From: zielvna Date: Wed, 3 Jan 2024 22:33:37 +0100 Subject: [PATCH] fix duplicated buttons --- .../PositionDetails/PositionDetails.tsx | 20 +++++-------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/src/components/PositionDetails/PositionDetails.tsx b/src/components/PositionDetails/PositionDetails.tsx index 8718b8bbc..f1b2ef69a 100644 --- a/src/components/PositionDetails/PositionDetails.tsx +++ b/src/components/PositionDetails/PositionDetails.tsx @@ -111,20 +111,6 @@ const PositionDetails: React.FC = ({ alignItems='flex-end' className={classes.right} wrap='nowrap'> - - - = ({ className={classes.button} variant='contained' onClick={() => { - history.push('/newPosition') + const parsedFee = parseFeeToPathFee(fee.v) + const address1 = addressToTicker(tokenXAddress.toString()) + const address2 = addressToTicker(tokenYAddress.toString()) + + history.push(`/newPosition/${address1}/${address2}/${parsedFee}`) }}> + Add Liquidity