Skip to content

Commit

Permalink
disable preview button if either price lower and upper is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
KillariDev committed Jan 30, 2024
1 parent df5e126 commit 30b5825
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/AddLiquidity/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]}
>
Expand Down

0 comments on commit 30b5825

Please sign in to comment.