diff --git a/src/features/tournaments/components/tournament-stats.tsx b/src/features/tournaments/components/tournament-stats.tsx index f0395cc..8d3e2a5 100644 --- a/src/features/tournaments/components/tournament-stats.tsx +++ b/src/features/tournaments/components/tournament-stats.tsx @@ -13,7 +13,7 @@ import { } from "@mantine/core"; import { Tournament } from "@/features/tournaments/types"; import { CrownIcon, TreeStructureIcon, InfoIcon, ListDashes } from "@phosphor-icons/react"; -import Avatar from "@/components/avatar"; +import TeamAvatar from "@/components/team-avatar"; import ListLink from "@/components/list-link"; import { Podium } from "./podium"; @@ -72,6 +72,8 @@ export const TournamentStats = memo(({ tournament }: TournamentStatsProps) => { Results Sorted by win percentage {teamStatsWithCalculations.map((stat, index) => { + const team = tournament.teams?.find(t => t.id === stat.team_id); + return ( { > - + {team ? ( + + ) : ( + + )}