We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b02819 commit 4073748Copy full SHA for 4073748
src/components/Table/index.js
@@ -56,10 +56,8 @@ const Table = () => {
56
57
const filteredByCheckbox = () => {
58
const checkbox = localStorage.getItem('checkbox') || '';
59
- return questions.filter(question => {
60
- if (!checkbox) return true;
61
- return question.checkbox === checkbox;
62
- });
+ if (!checkbox) return questions;
+ return questions.filter(q => q.checkbox === checkbox);
63
};
64
65
for (let i = 0; i < questions.length; i += 1) {
0 commit comments