zlnortheastern / kanbas-quizzes-group9

MIT License
0 stars 0 forks source link

show correct answer 的逻辑: 评分表中的"if they see the answers, they sacrifice any additional attempts they might have had"似乎没实现 #25

Closed lemonzeng closed 1 month ago

lemonzeng commented 1 month ago

image

{answers && questions && answers.length > 0 && (
          <StudentAnswerView
            answers={answers}
            questions={questions}
            showQuestions={quiz?.showCorrectAnswers !== ShowAnswerType.never}
            showAnswers={
              (quiz?.showCorrectAnswers === ShowAnswerType.after_due_date &&
                currentTime > dueDateTime) ||
              quiz?.showCorrectAnswers === ShowAnswerType.immediately
            }
          />
        )}