Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit ceba184

Browse files
committed
handling the null score that comes in on queue
1 parent 956c542 commit ceba184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/LeaderboardService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ async function updateLeaderboard (challengeId, memberId, review) {
253253
testsPassed,
254254
totalTestCases
255255
},
256-
aggregateScore: review.score,
256+
aggregateScore: review.score?review.score:0,
257257
reviewId: review.id,
258258
testsPassed,
259259
totalTestCases,

0 commit comments

Comments
 (0)