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 {