show scored predictions in player route during scoring/ended

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-12 22:18:28 +01:00
parent ec7e6fd869
commit 6cc164dfe5

View File

@@ -134,14 +134,24 @@ function PlayerView() {
</Tabs>
)}
{gameState && (room.currentAct === "scoring" || room.currentAct === "ended") && gameState.myPrediction && (
<PredictionsForm
entries={gameState.lineup.entries}
existingPrediction={gameState.myPrediction}
locked={true}
actualResults={gameState.actualResults}
onSubmit={() => {}}
/>
)}
{gameState && room.currentAct === "scoring" && (
<Leaderboard entries={gameState.leaderboard} />
<Leaderboard entries={gameState.leaderboard} resultsEntered={!!gameState?.actualResults} />
)}
{room.currentAct === "ended" && (
<div className="flex flex-col items-center gap-4 py-8">
<p className="text-lg text-muted-foreground">The party has ended. Thanks for playing!</p>
{gameState && <Leaderboard entries={gameState.leaderboard} />}
{gameState && <Leaderboard entries={gameState.leaderboard} resultsEntered={!!gameState?.actualResults} />}
</div>
)}