analytica-frontend-lib 1.2.6 → 1.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5639,12 +5639,14 @@ var QuizTitle = (0, import_react14.forwardRef)(({ className, onBack, ...props },
5639
5639
  ] });
5640
5640
  });
5641
5641
  var QuizHeader = () => {
5642
- const { getCurrentQuestion, currentQuestionIndex } = useQuizStore();
5642
+ const { getCurrentQuestion, getQuestionIndex } = useQuizStore();
5643
5643
  const currentQuestion = getCurrentQuestion();
5644
+ let currentId = currentQuestion && "questionId" in currentQuestion ? currentQuestion.questionId : currentQuestion?.id;
5645
+ const questionIndex = getQuestionIndex(currentId);
5644
5646
  return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5645
5647
  HeaderAlternative,
5646
5648
  {
5647
- title: currentQuestion ? `Quest\xE3o ${currentQuestionIndex + 1}` : "Quest\xE3o",
5649
+ title: currentQuestion ? `Quest\xE3o ${questionIndex.toString().padStart(2, "0")}` : "Quest\xE3o",
5648
5650
  subTitle: currentQuestion?.knowledgeMatrix?.[0]?.topic?.name ?? "",
5649
5651
  content: currentQuestion?.statement ?? ""
5650
5652
  }