diff --git a/client/src/components/QuestionsDisplay/TrueFalseQuestionDisplay/TrueFalseQuestionDisplay.tsx b/client/src/components/QuestionsDisplay/TrueFalseQuestionDisplay/TrueFalseQuestionDisplay.tsx
index 6ab1e07..63b3891 100644
--- a/client/src/components/QuestionsDisplay/TrueFalseQuestionDisplay/TrueFalseQuestionDisplay.tsx
+++ b/client/src/components/QuestionsDisplay/TrueFalseQuestionDisplay/TrueFalseQuestionDisplay.tsx
@@ -22,7 +22,6 @@ const TrueFalseQuestionDisplay: React.FC
= (props) => {
const selectedTrue = answer ? 'selected' : '';
const selectedFalse = answer !== undefined && !answer ? 'selected' : '';
- const correctAnswer = question.isTrue === answer;
return (
@@ -34,7 +33,7 @@ const TrueFalseQuestionDisplay: React.FC
= (props) => {
onClick={() => !showAnswer && setAnswer(true)}
fullWidth
>
- {showAnswer && (correctAnswer ? '✅' : '❌')}
+ {showAnswer? ( {(question.isTrue ? '✅' : '❌')}
):``}
V
Vrai
@@ -43,7 +42,7 @@ const TrueFalseQuestionDisplay: React.FC = (props) => {
onClick={() => !showAnswer && setAnswer(false)}
fullWidth
>
- {showAnswer && (!correctAnswer ? '✅' : '❌')}
+ {showAnswer? ( {(!question.isTrue ? '✅' : '❌')}
):``}
F
Faux