diff --git a/src/components/Action/ActionView.tsx b/src/components/Action/ActionView.tsx index cec6bf7390596269e671603b50f7e191e8514eb3..9c04e57df0f28df38b7c475cd27857948e77be46 100644 --- a/src/components/Action/ActionView.tsx +++ b/src/components/Action/ActionView.tsx @@ -22,14 +22,11 @@ const ActionView = () => { const renderAction = (challenge: UserChallenge) => { switch (challenge.action.state) { - case UserActionState.UNSTARTED: - return ( - <ActionChoose userChallenge={challenge} setFocus={focusMainContent} /> - ) case UserActionState.ONGOING: return <ActionOnGoing userAction={challenge.action} /> case UserActionState.NOTIFICATION: return <ActionDone currentChallenge={challenge} /> + case UserActionState.UNSTARTED: default: return ( <ActionChoose userChallenge={challenge} setFocus={focusMainContent} />