Skip to content

Commit

Permalink
fix(dividendes): correction du bug questions en changeant d'onglet
Browse files Browse the repository at this point in the history
  • Loading branch information
liliced committed Dec 13, 2024
1 parent 9b03783 commit 9971e8b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions site/source/store/reducers/simulation.reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9971e8b

Please sign in to comment.