Skip to content
This repository was 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 11, 2022
1 parent 6d4b1a2 commit 4206a67
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 4206a67

Please sign in to comment.