Skip to content

Commit

Permalink
not all votes have balance. this code is on rinkeby now.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkzel committed Aug 17, 2019
1 parent 1c37022 commit ddf5831
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion apps/dot-voting/app/components/ProgressBarThick.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,15 @@ const ProgressBar = ({ progress, label, hasBalance = false, balanceSplit = '' })
color={theme.textSecondary}
style={{ paddingRight: '4px', textAlign: 'right' }}
>
{balanceSplit}{Math.round(progress * 100)}%
{hasBalance ? (
<React.Fragment>
{balanceSplit}{Math.round(progress * 100)}%
</React.Fragment>
) : (
<React.Fragment>
{Math.round(progress * 100)}%
</React.Fragment>
)}
</Text.Block>
</Main>
)}
Expand Down

0 comments on commit ddf5831

Please sign in to comment.