From 6d62de4ec44a71c35248d8211f048c8384ea1ae2 Mon Sep 17 00:00:00 2001 From: dahyeon Date: Sun, 26 Apr 2026 01:42:59 -0700 Subject: [PATCH] . --- apps/web/src/api/mappers.ts | 8 +++----- apps/web/src/api/types.ts | 16 ++++++++++++---- apps/web/src/pages/AuctionPage.tsx | 2 +- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/apps/web/src/api/mappers.ts b/apps/web/src/api/mappers.ts index b9f572ec..3197de20 100644 --- a/apps/web/src/api/mappers.ts +++ b/apps/web/src/api/mappers.ts @@ -58,8 +58,7 @@ export interface MatchDetailView { export interface AuctionPlayerView extends ParticipantView { masteries: { - championName: string; - championId: string; + championId: number; level: number; points: number; }[]; @@ -175,10 +174,9 @@ function mapAuctionPlayerToView( subPosition, profileIconId: player.profileIconId, masteries: player.masteries.slice(0, 3).map((mastery) => ({ - championName: mastery.championName ?? mastery.championId, championId: mastery.championId, - level: mastery.level, - points: mastery.points, + level: mastery.championLevel, + points: mastery.championPoints, })), recentStats: { games: player.recentStatsSummary?.games ?? 0, diff --git a/apps/web/src/api/types.ts b/apps/web/src/api/types.ts index 923afc16..ebdbee9d 100644 --- a/apps/web/src/api/types.ts +++ b/apps/web/src/api/types.ts @@ -29,10 +29,18 @@ export interface ApiTierInfo { } export interface ApiChampionMasteryEntry { - championId: string; - championName?: string; - level: number; - points: number; + puuid?: string; + championId: number; + championLevel: number; + championPoints: number; + lastPlayTime?: number; + championPointsSinceLastLevel?: number; + championPointsUntilNextLevel?: number; + markRequiredForNextLevel?: number; + tokensEarned?: number; + championSeasonMilestone?: number; + milestoneGrades?: string[]; + nextSeasonMilestone?: Record; } export interface ApiRiotRecentStatsSummary { diff --git a/apps/web/src/pages/AuctionPage.tsx b/apps/web/src/pages/AuctionPage.tsx index 76a9e682..dd342f17 100644 --- a/apps/web/src/pages/AuctionPage.tsx +++ b/apps/web/src/pages/AuctionPage.tsx @@ -201,7 +201,7 @@ function PlayerSpotlight({ const iconUrl = championIconUrl(ddragon, mastery.championId); const displayName = championDisplayName(ddragon, mastery.championId) ?? - mastery.championName; + String(mastery.championId); return (