Commit 758b9fb5 authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

Merge branch '176-partie-defi-bug-pastille' into 'dev'

Resolve "Partie défi - bug pastille ?"

Closes #176

See merge request web-et-numerique/llle_project/ecolyo!458
parents 8f18a55c 0d1af083
......@@ -173,7 +173,7 @@ const SplashRoot = ({
) {
dispatch(toggleChallengeExplorationNotification(true))
}
// Set Notification if action state is notification
// Set action to notifcation if action is accomplished
if (
filteredCurrentOngoingChallenge[0] &&
filteredCurrentOngoingChallenge[0].action.state ===
......@@ -185,9 +185,16 @@ const SplashRoot = ({
)
if (updatedUserChallenge) {
dispatch(updateUserChallengeList(updatedUserChallenge))
dispatch(toggleChallengeActionNotification(true))
}
}
// Set Notification if action state is notification
if (
filteredCurrentOngoingChallenge[0] &&
filteredCurrentOngoingChallenge[0].action.state ===
UserActionState.NOTIFICATION
) {
dispatch(toggleChallengeActionNotification(true))
}
const filteredCurrentDuelChallenge = userChallengeList.filter(
challenge => challenge.state === UserChallengeState.DUEL
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment