From eef534200aa213eb54deb1d6dccab3489521b495 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Pailharey?= <rpailharey@grandlyon.com>
Date: Tue, 5 Sep 2023 17:04:08 +0200
Subject: [PATCH] fix(challenge): request loop in action selection

---
 src/components/Action/ActionBegin/ActionBegin.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/components/Action/ActionBegin/ActionBegin.tsx b/src/components/Action/ActionBegin/ActionBegin.tsx
index aecee0d25..c2a39a4a7 100644
--- a/src/components/Action/ActionBegin/ActionBegin.tsx
+++ b/src/components/Action/ActionBegin/ActionBegin.tsx
@@ -59,7 +59,7 @@ const ActionBegin = ({
     return () => {
       subscribed = false
     }
-  }, [client, isProfileTypeCompleted, fluidTypes, action, currentAction])
+  }, [action, client, fluidTypes, isProfileTypeCompleted])
 
   useEffect(() => {
     async function handleEcogestureIcon() {
-- 
GitLab