mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-20 04:14:12 +01: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) => {
|
stats.forEach((stat, index) => {
|
||||||
const trueIndex = chunkIndex * 100 + index;
|
const trueIndex = chunkIndex * 100 + index;
|
||||||
comprehensiveLeaderboard[trueIndex] =
|
comprehensiveLeaderboard[trueIndex] =
|
||||||
leaderboardChunk[index].id === 0 || stat.statistics.rating === undefined
|
leaderboardChunk[index].id === 0 || stat?.statistics.rating === undefined
|
||||||
? {
|
? {
|
||||||
battles: 0,
|
battles: 0,
|
||||||
damage: 0,
|
damage: 0,
|
||||||
|
|||||||
Reference in new issue
Block a user