diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 80a3234..516d2fd 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -660,6 +660,8 @@ export default function App() { hostUserId={gameMeta?.host_user_id || ""} isHost={isHost} started={!!gameMeta?.started} + finished={!!gameMeta?.winner_user_id} + winnerName={gameMeta?.winner_display_name || gameMeta?.winner_email || ""} chipCount={gameChips.length} onStartGame={startGame} /> diff --git a/frontend/src/components/GamePickerCard.jsx b/frontend/src/components/GamePickerCard.jsx index 6a253ba..7cb06f4 100644 --- a/frontend/src/components/GamePickerCard.jsx +++ b/frontend/src/components/GamePickerCard.jsx @@ -12,6 +12,8 @@ export default function GamePickerCard({ hostUserId, isHost = false, started = false, + finished = false, + winnerName = "", chipCount = 0, onStartGame, }) { @@ -175,8 +177,10 @@ export default function GamePickerCard({ {startError &&
{startError}
} ) : ( -
- ✓ Spiel läuft · {chipCount} Spieler-Chips erstellt +
+ {finished + ? `🏆 Spiel beendet${winnerName ? ` · Sieger: ${winnerName}` : ""}` + : `✓ Spiel läuft · ${chipCount} Spieler-Chips erstellt`}
)}