From ca31a115793d35f8e8e720c064a30f63ee0a3467 Mon Sep 17 00:00:00 2001
From: Bastien DUMONT <bdumont@grandlyon.com>
Date: Wed, 30 Oct 2024 16:47:23 +0100
Subject: [PATCH] chore(smell): duplicate case

---
 src/components/Action/ActionView.tsx | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/components/Action/ActionView.tsx b/src/components/Action/ActionView.tsx
index cec6bf739..9c04e57df 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} />
-- 
GitLab