Update components to display email instead of display_name

Replaced `display_name` with `email` in `WinnerBadge` and `WinnerCard` components. This ensures email addresses are shown consistently when rendering winner-related information.
This commit is contained in:
2026-02-06 13:22:23 +01:00
parent 59e224b4ca
commit fa89987f39
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ export default function WinnerBadge({ winner, winnerEmail }) {
{showEmail && ( {showEmail && (
<div style={{ fontSize: 12, opacity: 0.8, color: stylesTokens.textDim }}> <div style={{ fontSize: 12, opacity: 0.8, color: stylesTokens.textDim }}>
{winner.display_name} {winner.email}
</div> </div>
)} )}
</div> </div>

View File

@@ -25,7 +25,7 @@ export default function WinnerCard({
<option value=""> kein Sieger </option> <option value=""> kein Sieger </option>
{members.map((m) => ( {members.map((m) => (
<option key={m.id} value={m.id}> <option key={m.id} value={m.id}>
{m.display_name} {m.email}
</option> </option>
))} ))}
</select> </select>