Skip to content

Commit d0406b6

Browse files
Merge pull request #1198 from nqviet/new-develop
fixed issue #1011: copilot fulfillment should be consistent
2 parents fb7a9dc + e7aca8a commit d0406b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/shared/utils/memberStats.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export function getHistory(stats, track, subTrack) {
9696

9797

9898
const percentageFunc = n => `${(n * 100).toFixed(2)}%`;
99+
const formatWithDecimalFunc = n => `${n.toFixed(2)}%`; // fixed issue #1011
99100
const percentileFunc = n => (n === 0 ? '0' : `${n.toFixed(0)}%`);
100101
const ratingFunc = n => n.toFixed(0).replace(/\B(?=(\d{3})+(?!\d))/g, ',');
101102
const defaultRenderFunc = n => n.toFixed(0);
@@ -132,7 +133,7 @@ const interestingData = {
132133
{ key: 'activeProjects', label: 'active projects', postFunc: null },
133134
{ key: 'contests', label: 'total challenges', postFunc: null },
134135
{ key: 'projects', label: 'total projects', postFunc: null },
135-
{ key: 'fulfillment', label: 'fulfillment', postFunc: percentileFunc },
136+
{ key: 'fulfillment', label: 'fulfillment', postFunc: formatWithDecimalFunc },
136137
],
137138
};
138139

0 commit comments

Comments
 (0)