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 603cc238fa
commit 15661356d2
+6 -6
View File
@@ -15,10 +15,10 @@ interface Match {
id: number id: number
name: string name: string
} | null } | null
team1P1: { id: number; name: string } player1P1: { id: number; name: string }
team1P2: { id: number; name: string } player1P2: { id: number; name: string }
team2P1: { id: number; name: string } player2P1: { id: number; name: string }
team2P2: { id: number; name: string } player2P2: { id: number; name: string }
} }
export default function AdminMatchesPage() { export default function AdminMatchesPage() {
@@ -166,13 +166,13 @@ export default function AdminMatchesPage() {
)} )}
</td> </td>
<td className="px-6 py-4 whitespace-nowrap text-sm text-gray-900"> <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>
<td className="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"> <td className="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">
{match.team1Score} {match.team1Score}
</td> </td>
<td className="px-6 py-4 whitespace-nowrap text-sm text-gray-900"> <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>
<td className="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"> <td className="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">
{match.team2Score} {match.team2Score}