Skip to content

Commit

Permalink
fix warning for collateral
Browse files Browse the repository at this point in the history
  • Loading branch information
igorgoldobin committed Feb 9, 2024
1 parent fe8e6f8 commit bfa8a39
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/components/Content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import {
useTotalRegistrations,
} from 'state/stats/hooks'

import { WITHDRAWAL_DELAY } from '../../constants'
import { WITHDRAWAL_DELAY, COLLATERAL_AMOUNT } from '../../constants'

import StatsTile, { StatsTileProps } from './StatsTile'
import { ParticleAnimation } from 'utils/particles'
Expand Down Expand Up @@ -100,12 +100,9 @@ const Content = () => {
>
Register
</button>
<button
className="rounded-md px-3 py-2 text-[0.8125rem] font-semibold leading-5 hover:bg-indigo-500"
onClick={showClaimConfirmation}
>
Show
</button>
<span className='text-xs text-red-400'>
{ isDisabled ? `You do not have the required collateral to register. Please ensure you have a balance of ${formatEther(COLLATERAL_AMOUNT)} STRAX before trying to register` : null}
</span>
</>
)
} else if (userRegistrationStatus === RegistrationStatus.REGISTERED) {
Expand Down

0 comments on commit bfa8a39

Please sign in to comment.