diff --git a/src/pages/AddLiquidityV2/index.tsx b/src/pages/AddLiquidityV2/index.tsx index 6a25e2bbaf..2b0dcdd5b4 100644 --- a/src/pages/AddLiquidityV2/index.tsx +++ b/src/pages/AddLiquidityV2/index.tsx @@ -854,9 +854,10 @@ export default function AddLiquidity() { outOfRange || slippageStatus === SLIPPAGE_STATUS.HIGH || farmPosWarning - const warnings = showWarning && ( + + const warnings = !!showWarning && ( - {noLiquidity && ( + {!!noLiquidity && ( @@ -878,7 +879,7 @@ export default function AddLiquidity() { )} - {isPriceDeviated && ( + {!!isPriceDeviated && ( @@ -921,7 +922,7 @@ export default function AddLiquidity() { )} - {invalidRange ? ( + {!!invalidRange ? ( @@ -951,7 +952,7 @@ export default function AddLiquidity() { ) : null} - {farmPosWarning && ( + {!!farmPosWarning && ( @@ -1093,7 +1094,7 @@ export default function AddLiquidity() { const tickReader = useProAmmTickReader() const results = useSingleContractMultipleData( - tickLower && tickUpper ? tickReader : undefined, + tickLower !== undefined && tickUpper !== undefined ? tickReader : undefined, 'getNearestInitializedTicks', [ [poolAddress, tickLower],