Skip to content

Commit

Permalink
Fix undefined decimals (#111)
Browse files Browse the repository at this point in the history
* Fix undefined decimals

* Fix helium mobile sp vote
  • Loading branch information
ChewingGlass authored Jan 20, 2024
1 parent 6275b24 commit 9dc2b31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/Proposals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ const REALMS_VOTES = {
votes: 39630647870,
},
{
votes: 39630647870,
votes: 2405833,
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion components/VoteCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const VoteCard = ({
Votes
</div>
<div className="text-white text-base font-normal leading-normal">
{decimals ? truncatedHumanReadable(totalVotes, decimals, 2) : "..."}
{typeof decimals !== 'undefined' ? truncatedHumanReadable(totalVotes, decimals, 2) : "..."}
</div>
</div>
</div>
Expand Down

0 comments on commit 9dc2b31

Please sign in to comment.