Skip to content

Commit

Permalink
don't show both topup rows if equal values
Browse files Browse the repository at this point in the history
  • Loading branch information
radumojic committed Feb 20, 2024
1 parent 3c4b2c2 commit df3ecb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Tooltips/LockedStakeTooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ export const LockedStakeTooltip = ({
Staked: <Denominate value={stake} showTooltip={false} />
</p>
)}
{topUp !== undefined && (
{topUp !== undefined && !(showAuctionTopup && topUp === auctionTopUp) && (
<p className='mb-0'>
Top Up: <Denominate value={topUp} showTooltip={false} />
</p>
)}
{auctionTopUp !== undefined && showAuctionTopup && (
<p className='mb-0'>
Auction Qualified Top Up:{' '}
Qualified Top Up:{' '}
<Denominate value={auctionTopUp} showTooltip={false} />
</p>
)}
Expand Down

0 comments on commit df3ecb4

Please sign in to comment.