Skip to content

Commit 4b9c075

Browse files
Merge pull request #289 from nqviet/filter-update
fix for community-app's issue 5068
2 parents 95a7688 + 4a0f25f commit 4b9c075

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/challenge/filter.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ function filterByEvents(challenge, state) {
158158
}
159159

160160
function filterByText(challenge, state) {
161-
if (!state.name) return true;
161+
if (!state.search) return true;
162162
const str = `${challenge.name} ${challenge.tags} ${challenge.platforms} ${challenge.tags}`
163163
.toLowerCase();
164-
return str.includes(state.name.toLowerCase());
164+
return str.includes(state.search.toLowerCase());
165165
}
166166

167167
function filterByTrack(challenge, state) {

0 commit comments

Comments
 (0)