Skip to content

Commit

Permalink
Added Confirm disabled in case criteria is not met for wallet holdings
Browse files Browse the repository at this point in the history
  • Loading branch information
kirksgithub committed Oct 16, 2023
1 parent e0fbd43 commit eb273d8
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={(humanReadableMax && parseInt(amount) > humanReadableMax)}
disabled={humanReadableMax !== undefined && parseInt(amount) > humanReadableMax}
>
Confirm
</Button>
Expand Down

0 comments on commit eb273d8

Please sign in to comment.