Correction masquage bandeau pourchasseuse
This commit is contained in:
@ -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 <>
|
||||
|
Reference in New Issue
Block a user