We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6e1f27c + 2f54194 commit 392925dCopy full SHA for 392925d
src/firebaseAdmin.js
@@ -49,7 +49,7 @@ export const adminUpdateLegionStandings = async (legionId) => {
49
round.submissions.forEach((submission) => {
50
const { uid, voteCount } = submission;
51
52
- if (uid && voteCount) {
+ if (uid !== undefined && typeof voteCount === 'number') {
53
userVotes[uid] = (userVotes[uid] || 0) + voteCount;
54
}
55
});
0 commit comments