diff --git a/src/commands/ratings.tsx b/src/commands/ratings.tsx index f807ef7ff..197a55c21 100644 --- a/src/commands/ratings.tsx +++ b/src/commands/ratings.tsx @@ -384,8 +384,10 @@ export const ratingsCommand = new Promise( id: player.id, score: player.score, position: playerIndex + index + 1, - clan: clanData[player.id]!.clan?.tag, - nickname: clanData[player.id]!.account_name, + clan: clanData[index]?.clan?.tag, + nickname: clanData[index] + ? clanData[index]!.account_name + : `Deleted ${player.id}`, })); }, );