Fix: Properly handle async play() and remove autoPlay conflict

This commit is contained in:
Hördle Bot
2025-11-25 15:28:22 +01:00
parent f8b5dcf300
commit 9bf7e72a6c
2 changed files with 18 additions and 8 deletions

View File

@@ -271,7 +271,7 @@ export default function Game({ dailyPuzzle, genre = null, isSpecial = false, max
src={dailyPuzzle.audioUrl}
unlockedSeconds={unlockedSeconds}
startTime={dailyPuzzle.startTime}
autoPlay={lastAction === 'SKIP' || (lastAction === 'GUESS' && !hasWon && !hasLost) || hasPlayedAudio}
autoPlay={lastAction === 'SKIP' || (lastAction === 'GUESS' && !hasWon && !hasLost)}
onReplay={addReplay}
onHasPlayedChange={setHasPlayedAudio}
/>