Skip to content

Commit 9000099

Browse files
committed
fixed issue of search
1 parent 09ab1ba commit 9000099

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

components/ChallengeFilters/ChallengeFilterWithSearch.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ class Filter extends BaseFilter {
3737
return (item) => {
3838
if (!parent(item)) return false;
3939
if (this.query) {
40-
const platforms = item.platforms.join(' ');
41-
const techs = item.technologies.join(' ');
42-
const str = `${item.challengeName} ${platforms} ${techs}`.toLowerCase();
40+
const str = `${item.name} ${item.platforms} ${item.technologies}`.toLowerCase();
4341
if (str.indexOf(this.query.toLowerCase()) < 0) return false;
4442
}
4543
return true;

0 commit comments

Comments
 (0)