Correction masquage bandeau pourchasseuse

This commit is contained in:
2024-12-13 01:00:33 +01:00
parent 30a687018f
commit 9e5cdfb132
2 changed files with 9 additions and 7 deletions

View File

@ -86,8 +86,9 @@ export default function GameProvider({ children }: { children: ReactNode }) {
&& challengeAction.penaltyStart <= now && now <= challengeAction.penaltyEnd)
if (!activeChallenge || !game.currentRunner)
updatePenalty({ penaltyStart: null, penaltyEnd: null })
else if (activeChallenge && (activeChallenge.penaltyStart !== game.penaltyStart || activeChallenge.penaltyEnd))
else if (activeChallenge && (activeChallenge.penaltyStart !== game.penaltyStart || activeChallenge.penaltyEnd)) {
updatePenalty({ penaltyStart: activeChallenge.penaltyStart, penaltyEnd: activeChallenge.penaltyEnd })
}
}, [game.currentRunner, challengeActions])
return <>