feat: conditionally display 'Special' or 'Genre' for the genre text based on isSpecial flag

This commit is contained in:
Hördle Bot
2025-11-25 00:29:31 +01:00
parent 35fe5f2d44
commit 4c13817e77

View File

@@ -174,7 +174,7 @@ export default function Game({ dailyPuzzle, genre = null, isSpecial = false, max
const speaker = hasWon ? '🔉' : '🔇';
const bonusStar = (hasWon && gameState.yearGuessed && dailyPuzzle.releaseYear && gameState.scoreBreakdown.some(item => item.reason === 'Bonus: Correct Year')) ? '⭐' : '';
const genreText = genre ? `Genre: ${genre}\n` : '';
const genreText = genre ? `${isSpecial ? 'Special' : 'Genre'}: ${genre}\n` : '';
let shareUrl = 'https://hoerdle.elpatron.me';
if (genre) {