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:
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user