From 562beb108f31f936f414eed13a9ddabc5dfe3928 Mon Sep 17 00:00:00 2001 From: selankon Date: Fri, 15 Nov 2024 08:12:29 -0300 Subject: [PATCH] Add missing dependency --- .../src/components/Election/Questions/Questions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/chakra-components/src/components/Election/Questions/Questions.tsx b/packages/chakra-components/src/components/Election/Questions/Questions.tsx index e8a9d92..53f23d9 100644 --- a/packages/chakra-components/src/components/Election/Questions/Questions.tsx +++ b/packages/chakra-components/src/components/Election/Questions/Questions.tsx @@ -144,7 +144,7 @@ export const SubElectionQuestions = (props: ChakraProps) => { // ensure the client is set to the root one useEffect(() => { setClient(rootClient) - }, [rootClient]) + }, [election, rootClient]) // Add the sub election to the state cache useEffect(() => {