Skip to content

Commit

Permalink
Added disabled Confirm button
Browse files Browse the repository at this point in the history
  • Loading branch information
kirksgithub committed Oct 16, 2023
1 parent 0f6e1f7 commit 3f7aff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/DepositTokensButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const DepositTokensButton = ({
await deposit(nativeAmount)
setOpenModal(false)
}}
disabled={parseInt(amount) > humanReadableMax}
disabled={(humanReadableMax && parseInt(amount) > humanReadableMax)}
>
Confirm
</Button>
Expand Down

0 comments on commit 3f7aff2

Please sign in to comment.