diff --git a/src/pages/Pool/AddLiquidity.js b/src/pages/Pool/AddLiquidity.js index 982eb15b47..0cca000058 100644 --- a/src/pages/Pool/AddLiquidity.js +++ b/src/pages/Pool/AddLiquidity.js @@ -176,8 +176,8 @@ export default function AddLiquidity() { const liquidityMinted = isNewExchange ? inputValueParsed - : totalPoolTokens && inputValueParsed && exchangeETHBalance - ? exchangeETHBalance.isZero() && totalPoolTokens.mul(inputValueParsed).div(exchangeETHBalance) + : totalPoolTokens && inputValueParsed && exchangeETHBalance && !exchangeETHBalance.isZero() + ? totalPoolTokens.mul(inputValueParsed).div(exchangeETHBalance) : undefined // user balances