Skip to content

Commit

Permalink
FIX ESLint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabina Talipova committed Jul 5, 2023
1 parent 5a00756 commit 23f5167
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions client/src/components/ModuleDetails/ModuleDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class ModuleDetails extends Component {
* Toggle the popover with module details being open or not
*/
toggle(event) {
this.setState({
popoverOpen: !this.state.popoverOpen,
});
this.setState((prevState) => ({
popoverOpen: !prevState.popoverOpen,
}));

event.preventDefault();
return false;
Expand Down

0 comments on commit 23f5167

Please sign in to comment.