diff --git a/src/components/Quiz/QuizExplanationModal.tsx b/src/components/Quiz/QuizExplanationModal.tsx index 057dde2411b342a9d156b951dafaea600a13fd70..0d32663386e623642548ab78d218410e92d300b7 100644 --- a/src/components/Quiz/QuizExplanationModal.tsx +++ b/src/components/Quiz/QuizExplanationModal.tsx @@ -54,7 +54,7 @@ const QuizExplanationModal: React.FC<QuizExplanationModalProps> = ({ {t('quiz.rightAnswer')} <br /> <strong>{question.answers[validAnswer].answerLabel}</strong> </div> - <div className="text-16-normal">{t(question.explanation)}</div> + <div className="text-16-normal">{question.explanation}</div> </> )} diff --git a/src/services/quiz.service.ts b/src/services/quiz.service.ts index 05dbe97c75764f1cde5f6fc2d2909c23b769c49f..5c314a64c7461433d45f966a9f38b558719d3662 100644 --- a/src/services/quiz.service.ts +++ b/src/services/quiz.service.ts @@ -267,7 +267,8 @@ export default class QuizService { fluidType: FluidType[] ): Promise<QuestionEntity> { let answers: Answer[] - let explanation = '' + const explanation = + 'Vous pouvez vérifier cette information sur l’écran Conso.' const finalInterval: TimePeriod = this.getTimePeriodFromInterval( customQuestionEntity.interval, customQuestionEntity.period @@ -281,7 +282,6 @@ export default class QuizService { fluidType ) answers = this.getAnswersForInterval(intervalAsnwer.date, finalInterval) - explanation = 'quiz.interval.explanation' } else { //Max data const consumptionService = new ConsumptionDataManager(this._client)