Fix localCompare error on event leaderboard

This commit is contained in:
Théo 2023-04-14 21:55:27 +02:00
parent f9740813ef
commit 0e524ec25c

View file

@ -56,8 +56,8 @@ export default function EventLeaderboard({ id }: { token: string; id: number })
<span className="text-sm text-muted"> <span className="text-sm text-muted">
{group.players {group.players
?.map((p) => p.pseudo) ?.map((p) => p.pseudo)
.sort((a, b) => a.localeCompare(b)) .sort()
.join(', ')} .join(', ') || 'Pas de joueurs'}
</span> </span>
</div> </div>
</div> </div>