Skip to content
Snippets Groups Projects
Commit 108989d8 authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

chore(lint): unexpected lexical declaration in case block

parent f92c803e
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,6 @@ import {
Relation,
RelationEntitiesObject,
TimePeriod,
UserAction,
UserChallenge,
UserChallengeEntity,
UserDuel,
......@@ -718,13 +717,11 @@ export default class ChallengeService {
}
break
case UserChallengeUpdateFlag.ACTION_START:
let userAction: UserAction = userChallenge.action
if (action) {
userAction = actionService.launchAction(action)
}
updatedUserChallenge = {
...userChallenge,
action: userAction,
action: action
? actionService.launchAction(action)
: userChallenge.action,
}
break
case UserChallengeUpdateFlag.ACTION_NOTIFICATION:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment