Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kirksgithub committed Oct 16, 2023
1 parent 3f7aff2 commit e0fbd43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/DepositTokensButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ export const DepositTokensButton = ({
<h2>Deposit tokens</h2>
<label>
Amount to deposit
{(!amount || amount.length < 0 || (humanReadableMax && parseInt(amount) < humanReadableMax)) &&
<>
{amount && humanReadableMax && parseInt(amount) < humanReadableMax && (
<span>
&nbsp;-&nbsp;<a href="#" onClick={() => { setAmount(humanReadableMax ? humanReadableMax.toString() : '') }}>Max</a>
</>}
</span>)}
</label>
<Input
placeholder={humanReadableMax?.toString() + ' (max)'}
Expand Down

0 comments on commit e0fbd43

Please sign in to comment.