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.
1 parent 45c9561 commit 2f54194Copy full SHA for 2f54194
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 !== undefined) {
+ if (uid !== undefined && typeof voteCount === 'number') {
53
userVotes[uid] = (userVotes[uid] || 0) + voteCount;
54
}
55
});
0 commit comments