Skip to content

Commit 392925d

Browse files
authored
Merge pull request #51 from dgomie/debugging-v1beta
modify update standings logic to include vote counts of 0
2 parents 6e1f27c + 2f54194 commit 392925d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/firebaseAdmin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const adminUpdateLegionStandings = async (legionId) => {
4949
round.submissions.forEach((submission) => {
5050
const { uid, voteCount } = submission;
5151

52-
if (uid && voteCount) {
52+
if (uid !== undefined && typeof voteCount === 'number') {
5353
userVotes[uid] = (userVotes[uid] || 0) + voteCount;
5454
}
5555
});

0 commit comments

Comments
 (0)