mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
fix: null rating type safety
This commit is contained in:
1 parent
d8feb5c3a8
commit
815369805a
1 file changed
+1
-1
@@ -134,7 +134,7 @@ for (const leaderboardChunk of chunk(leaderboard, 100)) {
|
||||
stats.forEach((stat, index) => {
|
||||
const trueIndex = chunkIndex * 100 + index;
|
||||
comprehensiveLeaderboard[trueIndex] =
|
||||
leaderboardChunk[index].id === 0 || stat.statistics.rating === undefined
|
||||
leaderboardChunk[index].id === 0 || stat?.statistics.rating === undefined
|
||||
? {
|
||||
battles: 0,
|
||||
damage: 0,
|
||||
|
||||
Reference in new issue
Block a user