diff --git a/src/components/quiz/finished-screen.tsx b/src/components/quiz/finished-screen.tsx
index 7825e9a..755b4f1 100644
--- a/src/components/quiz/finished-screen.tsx
+++ b/src/components/quiz/finished-screen.tsx
@@ -25,6 +25,7 @@ export const FinishedScreen = () => {
totalCorrectAns,
questionsArray,
reset,
+ correctAns
} = useQuizStore(
useShallow((store) => ({
points: store.points,
@@ -33,6 +34,7 @@ export const FinishedScreen = () => {
totalCorrectAns: store.totalCorrectAns,
questionsArray: store.questionsArray,
reset: store.reset,
+ correctAns: store.correctAns
})),
);
// const {points, highscore} = useSelector(store => store.questions)
@@ -58,10 +60,14 @@ export const FinishedScreen = () => {
Quiz Results
- Correct: {totalCorrectAns}
+ Correct: {correctAns.length}
+
+ Incorrect: {questionsArray.length - correctAns.length}
+
+ {/* Correct: {totalCorrectAns}
Incorrect: {questionsArray.length - totalCorrectAns}
-
+
*/}