Skip to content

Commit 4bb6f2d

Browse files
authored
Merge pull request #241 from meherchandan/v3-fixes
fixed issue of search
2 parents 70fb1f5 + 9000099 commit 4bb6f2d

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)