Skip to content

Commit 0b002e8

Browse files
Fix filterByTags check if isEmpty
1 parent a8862cc commit 0b002e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/challenge/filter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function filterByStatus(challenge, state) {
145145
}
146146

147147
function filterByTags(challenge, state) {
148-
if (!state.tags) return true;
148+
if (_.isEmpty(state.tags)) return true;
149149
const { platforms, tags } = challenge;
150150
const str = `${platforms} ${tags}`.toLowerCase();
151151
return state.tags.some(tag => str.includes(tag.toLowerCase()));

0 commit comments

Comments
 (0)