Skip to content

Commit

Permalink
fix(earn): disable continue when transaction is not possible
Browse files Browse the repository at this point in the history
  • Loading branch information
MuckT committed Oct 11, 2024
1 parent 9e8dcbf commit 584acfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/earn/EarnEnterAmount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ function EarnEnterAmount({ route }: Props) {

const disabled =
// Should disable if the user enters 0, has enough balance but the transaction is not possible, or does not have enough balance
!!tokenAmount?.isZero() || (!isWithdrawal && !transactionIsPossible)
!!tokenAmount?.isZero() || !transactionIsPossible

const onTokenAmountInputChange = (value: string) => {
setMaxPressed(false)
Expand Down

0 comments on commit 584acfb

Please sign in to comment.