Skip to content

Commit

Permalink
fix(nan): owerview
Browse files Browse the repository at this point in the history
  • Loading branch information
PxyUp committed Jul 7, 2020
1 parent 9df7a41 commit f6f24c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/shared/numbers/numbers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const roundNumber = (value: number, countNumber = 2) => {

export const getRoundedPercent = (value: number, count = 2) => {
if (isNaN(value)) {
return `NaN`;
return `0 %`;
}
return `${roundNumber(value, count) * 100} %`;
};

0 comments on commit f6f24c1

Please sign in to comment.