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.
@@ -5664,12 +5664,14 @@ var QuizTitle = forwardRef11(({ className, onBack, ...props }, ref) => {
5664
5664
  ] });
5665
5665
  });
5666
5666
  var QuizHeader = () => {
5667
- const { getCurrentQuestion, currentQuestionIndex } = useQuizStore();
5667
+ const { getCurrentQuestion, getQuestionIndex } = useQuizStore();
5668
5668
  const currentQuestion = getCurrentQuestion();
5669
+ let currentId = currentQuestion && "questionId" in currentQuestion ? currentQuestion.questionId : currentQuestion?.id;
5670
+ const questionIndex = getQuestionIndex(currentId);
5669
5671
  return /* @__PURE__ */ jsx21(
5670
5672
  HeaderAlternative,
5671
5673
  {
5672
- title: currentQuestion ? `Quest\xE3o ${currentQuestionIndex + 1}` : "Quest\xE3o",
5674
+ title: currentQuestion ? `Quest\xE3o ${questionIndex.toString().padStart(2, "0")}` : "Quest\xE3o",
5673
5675
  subTitle: currentQuestion?.knowledgeMatrix?.[0]?.topic?.name ?? "",
5674
5676
  content: currentQuestion?.statement ?? ""
5675
5677
  }