diff --git a/src/app/players/[id]/profile/page.tsx b/src/app/players/[id]/profile/page.tsx index 7992f20..cda36da 100644 --- a/src/app/players/[id]/profile/page.tsx +++ b/src/app/players/[id]/profile/page.tsx @@ -20,6 +20,11 @@ export default async function PlayerProfilePage({ params }: PageProps) { const player = await prisma.player.findUnique({ where: { id: playerId }, + include: { + eloRating: true, + openSkillRating: true, + glicko2Rating: true, + }, }) if (!player) { @@ -115,12 +120,16 @@ export default async function PlayerProfilePage({ params }: PageProps) {

{player.currentElo}

-

Total Games

-

{totalGames}

+

OpenSkill Rating

+

+ {player.openSkillRating?.rating?.toFixed(1) || 'N/A'} +

-

Win Rate

-

{winRate}%

+

Glicko2 Rating

+

+ {player.glicko2Rating?.rating?.toFixed(1) || 'N/A'} +

Best Partner