Skip to content

Commit 72cd417

Browse files
Merge pull request #1180 from gets0ul/issue_985
Percentage is now rounded to 2 decimals
2 parents 1ca6a9a + 746806f commit 72cd417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/utils/memberStats.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export function getHistory(stats, track, subTrack) {
9595
}
9696

9797

98-
const percentageFunc = n => `${(n * 100).toFixed(0)}%`;
98+
const percentageFunc = n => `${(n * 100).toFixed(2)}%`;
9999
const percentileFunc = n => (n === 0 ? '0' : `${n.toFixed(0)}%`);
100100
const ratingFunc = n => n.toFixed(0).replace(/\B(?=(\d{3})+(?!\d))/g, ',');
101101
const defaultRenderFunc = n => n.toFixed(0);

0 commit comments

Comments
 (0)