Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Show '0' when formatted amount is falsy
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandro committed Jan 7, 2022
1 parent 7dc326a commit 553a21c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/custom/pages/Profile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default function Profile() {
<ProfileFlexCol>
<Txt fs={14}>Balance</Txt>
<Txt fs={18} title={`${formatMax(vCowBalance)} vCOW`}>
<strong>{formatSmart(vCowBalance, AMOUNT_PRECISION)} vCOW</strong>
<strong>{formatSmart(vCowBalance, AMOUNT_PRECISION) || '0'} vCOW</strong>
</Txt>
</ProfileFlexCol>
</VCOWBalance>
Expand Down

0 comments on commit 553a21c

Please sign in to comment.