Skip to content

Commit

Permalink
added requiredUnsolvedIcon to AdaptivityElementQuestionSelection
Browse files Browse the repository at this point in the history
  • Loading branch information
AdLer-Lukas committed Feb 19, 2024
1 parent 4f4c65a commit bef1dea
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit bef1dea

Please sign in to comment.