This commit is contained in:
dahyeon committed 2026-04-26 01:42:59 -07:00
1 parent c82bf55fe9
commit 6d62de4ec4
3 files changed
+16 -10

No files matched your search

+3 -5
View File
@@ -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,
+12 -4
View File
@@ -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<string, unknown>;
}
export interface ApiRiotRecentStatsSummary {
+1 -1
View File
@@ -201,7 +201,7 @@ function PlayerSpotlight({
const iconUrl = championIconUrl(ddragon, mastery.championId);
const displayName =
championDisplayName(ddragon, mastery.championId) ??
mastery.championName;
String(mastery.championId);
return (
<div key={mastery.championId} className="flex items-center gap-2">
<div className="w-7 h-7 bg-base-content/10 overflow-hidden shrink-0">