Skip to content

Commit

Permalink
#7 patching errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewNobes committed Jun 16, 2022
1 parent 1847d56 commit b6c6a30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export const BinaryRiskMatrixForm = (props) => {
{questionDetails.map((question) => {
return (
<Question
key={question.questionNumber}
value={question.value}
id={question.questionNumber}
changeFn={question.changeFn}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ export const Question = (props) => {
const id = props.id;

return (
<div className="BinaryRiskMatrixForm-CheckboxBlock">
<div className="BinaryRiskMatrixForm-CheckboxBlock" id={"Q" + id}>
<input type="checkbox" id={id} value={value} onChange={changeFn} />
<label for={id}>{question}</label>
<label htmlFor={id}>{question}</label>
</div>
);
};

0 comments on commit b6c6a30

Please sign in to comment.