Skip to content

Commit

Permalink
Fix checking background questions
Browse files Browse the repository at this point in the history
  • Loading branch information
nygrenh committed Jul 7, 2023
1 parent 0104413 commit e7d664c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ const SelectCourseInstanceForm: React.FC<
<CheckBox
label={additionalQuestion.question_text}
checked={answer?.answer_value === "t"}
onChange={(value) => {
onChange={(event) => {
// eslint-disable-next-line i18next/no-literal-string
const valueAsString = value ? "t" : "f"
const valueAsString = event.target.value ? "t" : "f"
setAdditionalQuestionAnswers((prev) => {
const newArray = prev.filter(
(a) => a.course_background_question_id !== additionalQuestion.id,
Expand Down

0 comments on commit e7d664c

Please sign in to comment.