Skip to content
Snippets Groups Projects
Commit 59ce4d4f authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

Fix autoslide to challenge in duel state

parent a4a73452
No related branches found
No related tags found
1 merge request!166Fix/duel mini card done
......@@ -102,7 +102,8 @@ const ChallengeView: React.FC = () => {
userChallengeList.forEach((challenge: UserChallenge, i: number) => {
if (
challenge.state === UserChallengeState.UNLOCKED ||
challenge.state === UserChallengeState.ONGOING
challenge.state === UserChallengeState.ONGOING ||
challenge.state === UserChallengeState.DUEL
) {
setlastChallengeIndex(i)
if (lastChallengeIndex === 0) return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment