Add winner display name support in game metadata

Updated backend to include winner's display name in the game metadata API and frontend to display it alongside the email. This enhances clarity by showing a more user-friendly identifier.
This commit is contained in:
2026-02-06 13:52:19 +01:00
parent b4b5c7903a
commit 0c983f7e44
2 changed files with 13 additions and 3 deletions

View File

@@ -411,7 +411,12 @@ export default function App() {
/>
{/* Sieger Badge: zwischen Spiel und Verdächtigte Person */}
<WinnerBadge winnerEmail={gameMeta?.winner_email || ""} />
<WinnerBadge
winner={{
display_name: gameMeta?.winner_display_name || "",
email: gameMeta?.winner_email || "",
}}
/>
<HelpModal open={helpOpen} onClose={() => setHelpOpen(false)} />