fix: null clan

This commit is contained in:
TrèsAbhi committed 2023-09-30 22:35:04 -05:00
1 parent 6add54e86d
commit a535a07810
1 file changed
+4 -2
+4 -2
View File
@@ -316,8 +316,10 @@ export const ratingsCommand = new Promise<CommandRegistryRaw>(
id: player.id, id: player.id,
score: player.score, score: player.score,
position: firstPlayerIndex + index + 1, position: firstPlayerIndex + index + 1,
clan: clanData[player.id]!.clan?.tag, clan: clanData[player.id]?.clan?.tag,
nickname: clanData[player.id]!.account_name, nickname:
clanData[player.id]?.account_name ??
`Unknown Player ${player.id}`,
}) satisfies SimplifiedPlayer, }) satisfies SimplifiedPlayer,
); );
}); });