Skip to content

Commit f1ce019

Browse files
committed
Fix
1 parent 318df1f commit f1ce019

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

apps/codebattle/assets/js/widgets/pages/tournament/Tournament.jsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,18 @@ function InfoPanel({ currentUserId, tournament, hideResults, canModerate, isOnli
4343
const isParticipant = !!currentPlayer;
4444
// Top200: registered players can't leave — show their name/clan instead of the leave CTA.
4545
const isTop200 = tournament.type === "top200";
46+
// Simulator players use ids 100_001..100_209; show the 1..209 ordinal, real users keep their id.
47+
const displayId =
48+
currentPlayer && currentPlayer.id > 100000 ? currentPlayer.id - 100000 : currentPlayer?.id;
4649

4750
const joinCta =
4851
showJoinCta && !canModerate ? (
4952
<div className="mb-3 pb-2 border-bottom cb-border-color">
5053
{isParticipant && isTop200 ? (
51-
<p className="mb-2 text-muted">
52-
{[currentPlayer.name, currentPlayer.clan].filter(Boolean).join(", ")}
54+
<p className="mb-2 font-weight-bold text-white">
55+
{[`${currentPlayer.name} (${displayId})`, currentPlayer.clan]
56+
.filter(Boolean)
57+
.join(", ")}
5358
</p>
5459
) : (
5560
<>

0 commit comments

Comments
 (0)