Skip to content

Commit

Permalink
Fix: selecting assessment status
Browse files Browse the repository at this point in the history
  • Loading branch information
skybird23333 committed Sep 19, 2022
1 parent a171fff commit e242747
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Assessment.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export class Assessment extends React.Component {
});
}
handleStatusChange(i) {
this.setState({due: !!(i === 1)})
console.log(i)
// eslint-disable-next-line
this.setState({due: (i == 1)})
}

render() {
Expand Down Expand Up @@ -87,7 +89,6 @@ export class Assessment extends React.Component {

value={this.state.due ? 1 : 0}
>

</Select>
</div>
Grading:
Expand Down

0 comments on commit e242747

Please sign in to comment.