From fed7ffad25283334c4e1cbb442958b7cc11cc27d Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Mon, 19 Sep 2022 08:40:36 +0200 Subject: [PATCH] =?UTF-8?q?R=C3=A9pare=20bug=20critique=20sur=20safari?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/source/components/utils/useNextQuestion.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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