diff --git a/src/quiz/quiz.stories.tsx b/src/quiz/quiz.stories.tsx
index 435dd2b..f7b7cc1 100644
--- a/src/quiz/quiz.stories.tsx
+++ b/src/quiz/quiz.stories.tsx
@@ -103,7 +103,11 @@ const QuizWithValidation = () => {
return (
- {correctAnswerCount &&
Correct answers: {correctAnswerCount}
}
+ {correctAnswerCount > -1 && (
+
+
Correct answers: {correctAnswerCount}
+
+ )}
diff --git a/src/quiz/use-quiz.ts b/src/quiz/use-quiz.ts
index 4a78074..c83b219 100644
--- a/src/quiz/use-quiz.ts
+++ b/src/quiz/use-quiz.ts
@@ -20,7 +20,7 @@ export const useQuiz =
({
}: Props) => {
const [questions, setQuestions] =
useState[]>(initialQuestions);
- const [correctAnswerCount, setCorrectAnswerCount] = useState(0);
+ const [correctAnswerCount, setCorrectAnswerCount] = useState(-1);
const questionsWithChangeHandling = questions.map((question, index) => ({
...question,