diff --git a/site/source/components/utils/useNextQuestion.tsx b/site/source/components/utils/useNextQuestion.tsx index c6eabe769..7f96c1e55 100644 --- a/site/source/components/utils/useNextQuestion.tsx +++ b/site/source/components/utils/useNextQuestion.tsx @@ -72,7 +72,7 @@ export function getNextQuestions( notPriority.findIndex((name) => question.startsWith(name)) + 1 const differenceCoeff = questionDifference( question, - answeredQuestions.at(-1) + answeredQuestions.slice(-1)[0] ) return indexList + indexNotPriority + differenceCoeff