feat: add double elimination match mode

This commit is contained in:
dahyeon committed 2026-06-26 05:00:08 -07:00
1 parent b9aaf55193
commit e12f182e7f
19 files changed
+3415 -58

No files matched your search

+5 -2
View File
@@ -28,6 +28,7 @@ const GAME_MODE_LABEL: Record<MatchGameMode, string> = {
pair: "페어 매치",
bracket: "토너먼트",
"round-robin": "리그전",
"double-elimination": "더블 엘리미네이션",
};
function resultBadgeClass(won: boolean) {
@@ -191,9 +192,11 @@ function UpcomingGameCard({
const opponentIndex =
slot.teamAIndex === parsedTeamIndex ? slot.teamBIndex : slot.teamAIndex;
const ourTeam = teamByIndex.get(parsedTeamIndex);
const opponentTeam = teamByIndex.get(opponentIndex);
const opponentTeam = opponentIndex ? teamByIndex.get(opponentIndex) : undefined;
const ourTeamName = teamIndexLabel(parsedTeamIndex, ourTeam?.name);
const opponentTeamName = teamIndexLabel(opponentIndex, opponentTeam?.name);
const opponentTeamName = opponentIndex
? teamIndexLabel(opponentIndex, opponentTeam?.name)
: "상대 미정";
const ourCaptainName = captainName(ourTeam, participantByUserId);
const opponentCaptainName = captainName(opponentTeam, participantByUserId);
const opponentMembers = opponentTeam?.members ?? [];