Skip to content

Commit

Permalink
Fix performance calculation after contest
Browse files Browse the repository at this point in the history
  • Loading branch information
nullchilly committed Mar 19, 2024
1 parent 20045fb commit 559ac24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion carrot/src/background/predict.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class Contestant {
this.points = points;
this.penalty = penalty;
this.rating = rating;
this.effectiveRating = rating == null ? DEFAULT_RATING : rating;
this.effectiveRating = rating == null || rating == 0 ? DEFAULT_RATING : rating;

this.rank = null;
this.delta = null;
Expand Down

0 comments on commit 559ac24

Please sign in to comment.