From 9971e8be4c797d6da01fc6a7469d739f8705360b Mon Sep 17 00:00:00 2001 From: Alice Dahan Date: Fri, 13 Dec 2024 15:30:16 +0100 Subject: [PATCH] fix(dividendes): correction du bug questions en changeant d'onglet --- site/source/store/reducers/simulation.reducer.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/site/source/store/reducers/simulation.reducer.ts b/site/source/store/reducers/simulation.reducer.ts index c7112e098..344f8f640 100644 --- a/site/source/store/reducers/simulation.reducer.ts +++ b/site/source/store/reducers/simulation.reducer.ts @@ -249,9 +249,10 @@ export function simulationReducer( questionEnCoursNEstPasÀRépondre && questionEnCoursNEstPasRépondue const nouvelleQuestionEnCours = - action.questionsSuivantes.length && - (pasDeQuestionEnCours || questionEnCoursPlusNécessaire) - ? action.questionsSuivantes[0] + pasDeQuestionEnCours || questionEnCoursPlusNécessaire + ? action.questionsSuivantes.length + ? action.questionsSuivantes[0] + : null : currentQuestion return {