Skip to content

Commit

Permalink
Floor JOY token number in tier badge
Browse files Browse the repository at this point in the history
  • Loading branch information
Lezek123 committed Dec 16, 2024
1 parent 0cd30e1 commit e1caecd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const CommentTierBadge = ({ tier, amount }: CommentTierBadgeProps) => {
<BadgeFrame tier={tier}>
{getTierIcon(tier, 'small')}
<Text as="span" variant="t100" color="colorText">
{formatNumber(amount)} JOY
{formatNumber(Math.floor(amount))} JOY
</Text>
</BadgeFrame>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export const InternalComment: FC<InternalCommentProps> = ({
{!!(tipTier && tipAmount) && (
<>
<CommentHeaderDot />
<CommentTierBadge tier={tipTier} amount={hapiBnToTokenNumber(new BN(tipAmount))} />
<CommentTierBadge tier={tipTier} amount={Math.floor(hapiBnToTokenNumber(new BN(tipAmount)))} />
</>
)}
<CommentHeaderDot />
Expand Down

0 comments on commit e1caecd

Please sign in to comment.