diff --git a/src/components/Table/index.js b/src/components/Table/index.js index d4ab3e43..1eabd5b8 100644 --- a/src/components/Table/index.js +++ b/src/components/Table/index.js @@ -158,22 +158,26 @@ const Table = () => { id: 'Checkbox', Cell: cellInfo => { return ( - { - checked[cellInfo.row.original.id] = !checked[ - cellInfo.row.original.id - ]; + + { + checked[cellInfo.row.original.id] = !checked[ + cellInfo.row.original.id + ]; - const additive = checked[cellInfo.row.original.id] ? 1 : -1; - difficultyCount[ - cellInfo.row.original.difficulty - ] += additive; - setDifficultyCount(difficultyCount); - setChecked([...checked]); - }} - /> + const additive = checked[cellInfo.row.original.id] + ? 1 + : -1; + difficultyCount[ + cellInfo.row.original.difficulty + ] += additive; + setDifficultyCount(difficultyCount); + setChecked([...checked]); + }} + /> + ); }, },