Skip to content

Commit

Permalink
ui fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vnaysngh-mudrex committed May 17, 2024
1 parent 449c1f7 commit 5c0a0c4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/pages/Rewards/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ const ClaimWrapper = styled.div`

const ClaimButtonGradient = styled(ButtonPrimary)`
display: flex;
width: 160px;
width: auto;
justify-content: center;
align-items: center;
flex-shrink: 0;
Expand Down Expand Up @@ -724,7 +724,7 @@ export default function Rewards() {
STRK ALLOCATED
</>
</HeaderText>
<AmountText>{allocations?.toSignificant() ?? 0}</AmountText>
<AmountText>{address && allocations ? allocations?.toSignificant() : 0}</AmountText>
</Column>
<Column>
<HeaderText>
Expand All @@ -733,7 +733,9 @@ export default function Rewards() {
STRK CLAIMED
</>
</HeaderText>
<AmountText>{formattedClaimRewards?.toSignificant() ?? 0}</AmountText>
<AmountText>
{address && formattedClaimRewards ? formattedClaimRewards?.toSignificant() : 0}
</AmountText>
</Column>
<Column>
<HeaderText>
Expand All @@ -743,7 +745,7 @@ export default function Rewards() {
</>
</HeaderText>
<ClaimWrapper>
<AmountText>{unclaimed_rewards.toSignificant() ?? 0}</AmountText>
<AmountText>{address && unclaimed_rewards ? unclaimed_rewards.toSignificant(5) : 0}</AmountText>

{!address ? (
<ClaimButtonGradient
Expand Down

0 comments on commit 5c0a0c4

Please sign in to comment.