From 30b582533b3c0a306a38865e5d326f0bff2602af Mon Sep 17 00:00:00 2001 From: KillariDev Date: Tue, 30 Jan 2024 16:46:11 +0200 Subject: [PATCH] disable preview button if either price lower and upper is not set --- src/pages/AddLiquidity/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/AddLiquidity/index.tsx b/src/pages/AddLiquidity/index.tsx index dfddee16ad0..bf7a2b16b6f 100644 --- a/src/pages/AddLiquidity/index.tsx +++ b/src/pages/AddLiquidity/index.tsx @@ -517,7 +517,9 @@ function AddLiquidity() { disabled={ !isValid || (!argentWalletContract && approvalA !== ApprovalState.APPROVED && !depositADisabled) || - (!argentWalletContract && approvalB !== ApprovalState.APPROVED && !depositBDisabled) + (!argentWalletContract && approvalB !== ApprovalState.APPROVED && !depositBDisabled) || + priceLower === undefined || + priceUpper === undefined } error={!isValid && !!parsedAmounts[Field.CURRENCY_A] && !!parsedAmounts[Field.CURRENCY_B]} >