Afifchage de l'historique des mouvements de point
This commit is contained in:
@ -30,12 +30,12 @@ function ChallengeScreenBody() {
|
||||
const currentChallengeAction = useMemo(() => {
|
||||
if (!game.activeChallengeId)
|
||||
return null
|
||||
return challengeActions.challengeActions.find((action) => action.id === game.activeChallengeId)
|
||||
return challengeActions.find((action) => action.id === game.activeChallengeId)
|
||||
}, [game, challengeActions])
|
||||
const currentChallenge = useMemo(() => {
|
||||
if (!currentChallengeAction)
|
||||
return null
|
||||
return challenges.challenges.find((challenge) => challenge.id === currentChallengeAction.challengeId)
|
||||
return challenges.find((challenge) => challenge.id === currentChallengeAction.challengeId)
|
||||
}, [currentChallengeAction, challenges])
|
||||
const [loading, setLoading] = useState(false)
|
||||
const [successSnackbarVisible, setSuccessSnackbarVisible] = useState(false)
|
||||
|
Reference in New Issue
Block a user