fix: update AdminMatchesPage to use correct player property names (player1P1, player1P2, etc.)

This commit is contained in:
2026-04-04 00:29:18 -07:00
parent 62ac6d1b79
commit a06cda96f2
+6 -6
View File
@@ -15,10 +15,10 @@ interface Match {
id: number
name: string
} | null
team1P1: { id: number; name: string }
team1P2: { id: number; name: string }
team2P1: { id: number; name: string }
team2P2: { id: number; name: string }
player1P1: { id: number; name: string }
player1P2: { id: number; name: string }
player2P1: { id: number; name: string }
player2P2: { id: number; name: string }
}
export default function AdminMatchesPage() {
@@ -166,13 +166,13 @@ export default function AdminMatchesPage() {
)}
</td>
<td className="px-6 py-4 whitespace-nowrap text-sm text-gray-900">
{match.team1P1.name} & {match.team1P2.name}
{match.player1P1?.name} & {match.player1P2?.name}
</td>
<td className="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">
{match.team1Score}
</td>
<td className="px-6 py-4 whitespace-nowrap text-sm text-gray-900">
{match.team2P1.name} & {match.team2P2.name}
{match.player2P1?.name} & {match.player2P2?.name}
</td>
<td className="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">
{match.team2Score}