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 9797bf5 commit 98a9cdcCopy full SHA for 98a9cdc
src/components/Table/index.js
@@ -56,8 +56,10 @@ const Table = () => {
56
57
const filteredByCheckbox = () => {
58
const checkbox = localStorage.getItem('checkbox') || '';
59
- if (!checkbox) return questions;
60
- return questions.filter(q => q.checkbox === checkbox);
+ return questions.filter(question => {
+ if (!checkbox) return true;
61
+ return question.checkbox === checkbox;
62
+ });
63
};
64
65
for (let i = 0; i < questions.length; i += 1) {
0 commit comments