From bef1dea3bd29d65942db7c6259d64279cf5a8d50 Mon Sep 17 00:00:00 2001 From: AdLer-Lukas <95357660+AdLer-Lukas@users.noreply.github.com> Date: Mon, 19 Feb 2024 11:55:24 +0100 Subject: [PATCH] added requiredUnsolvedIcon to AdaptivityElementQuestionSelection --- .../UIComponents/AdaptivityElementQuestionSelection.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Components/Core/Presentation/Adaptivity/AdaptivityElement/UIComponents/AdaptivityElementQuestionSelection.tsx b/src/Components/Core/Presentation/Adaptivity/AdaptivityElement/UIComponents/AdaptivityElementQuestionSelection.tsx index 6ed87db9b..8be1deb2f 100644 --- a/src/Components/Core/Presentation/Adaptivity/AdaptivityElement/UIComponents/AdaptivityElementQuestionSelection.tsx +++ b/src/Components/Core/Presentation/Adaptivity/AdaptivityElement/UIComponents/AdaptivityElementQuestionSelection.tsx @@ -52,6 +52,9 @@ export default function AdaptivityElementQuestionSelection({ {selectedTask.questions.map((question) => { let starState = AdaptivityElementDifficultyStarState.NotRequiredUnsolved; + if (question.isRequired === true) { + starState = AdaptivityElementDifficultyStarState.RequiredUnsolved; + } if (question.isCompleted === true && question.isRequired === true) { starState = AdaptivityElementDifficultyStarState.RequiredSolved; } else if (