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

chore(smell): duplicate case

parent ab2a31ac
No related branches found
No related tags found
No related merge requests found
...@@ -22,14 +22,11 @@ const ActionView = () => { ...@@ -22,14 +22,11 @@ const ActionView = () => {
const renderAction = (challenge: UserChallenge) => { const renderAction = (challenge: UserChallenge) => {
switch (challenge.action.state) { switch (challenge.action.state) {
case UserActionState.UNSTARTED:
return (
<ActionChoose userChallenge={challenge} setFocus={focusMainContent} />
)
case UserActionState.ONGOING: case UserActionState.ONGOING:
return <ActionOnGoing userAction={challenge.action} /> return <ActionOnGoing userAction={challenge.action} />
case UserActionState.NOTIFICATION: case UserActionState.NOTIFICATION:
return <ActionDone currentChallenge={challenge} /> return <ActionDone currentChallenge={challenge} />
case UserActionState.UNSTARTED:
default: default:
return ( return (
<ActionChoose userChallenge={challenge} setFocus={focusMainContent} /> <ActionChoose userChallenge={challenge} setFocus={focusMainContent} />
......
  • build-token @group_1518_bot_2801ee8bae68451533dcea1179b03710

    mentioned in commit 65d6732a

    ·

    mentioned in commit 65d6732a

    Toggle commit list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment