This commit is contained in:
dahyeon committed 2026-04-27 14:04:04 -07:00
1 parent 7a43a667f1
commit c00545f281
21 files changed
+1920 -5

No files matched your search

+5
View File
@@ -12,6 +12,7 @@ import type {
Position,
RiotLane,
TeamSide,
TournamentCodeSlotView,
} from "./types";
import { POSITION_ORDER, sideLabel } from "../lib/league";
@@ -46,6 +47,8 @@ export interface MatchDetailView {
description: string;
map: string;
maxParticipants: number;
gameCount: number;
tournamentCodes: TournamentCodeSlotView[];
joined: boolean;
participants: ParticipantView[];
teams: TeamView[];
@@ -402,6 +405,8 @@ export function mapApiMatchToMatchDetail(match: ApiMatch): MatchDetailView {
description: match.description,
map: mapIdToLabel(match.mapId),
maxParticipants: match.maxParticipants,
gameCount: match.gameCount ?? 3,
tournamentCodes: match.tournamentCodes ?? [],
joined: Boolean(match.joined),
participants,
teams,