Skip to content

Commit

Permalink
chore: Update MainRewards component to improve staked amount display
Browse files Browse the repository at this point in the history
  • Loading branch information
mohandast52 committed May 28, 2024
1 parent 0c88119 commit 809b2ca
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions frontend/components/Main/MainRewards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,9 @@ const DisplayRewards = () => {
<Text strong style={{ fontSize: 20 }}>
{balanceFormat(totalOlasStakedBalance, 2)} OLAS
</Text>
{minimumStakedAmountRequired && (
<>
{isStaked ? null : (
<Tag color="processing">Not yet staked</Tag>
)}
</>
)}
{minimumStakedAmountRequired && !isStaked ? (
<Tag color="processing">Not yet staked</Tag>
) : null}
</>
) : (
<Loader />
Expand Down

0 comments on commit 809b2ca

Please sign in to comment.