Skip to content

Commit 2fdbd85

Browse files
committed
Merge branch 'develop'
2 parents 09671d5 + f828a97 commit 2fdbd85

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/actions/stats.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@ async function getCommunityStatsDone(community, uuid, challenges, token) {
4747
const filterFunction = Filter.getFilterFunction(community.challengeFilter);
4848
filtered = filtered.filter(filterFunction);
4949
}
50-
const totalPrize = filtered.reduce(
51-
(total, challenge) => total + (challenge.totalPrize || 0),
52-
0,
50+
const totalPrize = Math.round(
51+
filtered.reduce(
52+
(total, challenge) => total + (challenge.totalPrize || 0),
53+
0,
54+
),
5355
);
5456
const groupService = getGroupService(token);
5557
const result = {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy