Skip to content

Commit

Permalink
Merge pull request #91 from DarkFlorist/price-lower-and-upper
Browse files Browse the repository at this point in the history
disable preview button if either price lower and upper is not set
  • Loading branch information
KillariDev authored Jan 30, 2024
2 parents 98271a0 + 30b5825 commit 6da343b
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 6da343b

Please sign in to comment.