+
- {question.formattedGlobalFeedback && showAnswer && (
-
+ {showAnswer ? (
+ <>
+
+ La bonne réponse est:
+ {correctAnswer}
+
+ Votre réponse est: {actualAnswer.toString()}
+
+ {question.formattedGlobalFeedback &&
}
+
+ >
+ ) : (
+ <>
+
+ ) => {
+ setActualAnswer([e.target.valueAsNumber]);
+ }}
+ inputProps={{ 'data-testid': 'number-input' }}
+ />
+
+ {question.formattedGlobalFeedback && showAnswer && (
+
+ )}
+ {submitAnswer && (
+
+ )}
+ >
)}
- {handleOnSubmitAnswer && (
-
- )}
- >
+
+
)}
-