From 4a0f25ff65ca0f599036e8bfcd3f06c6b311b0a0 Mon Sep 17 00:00:00 2001 From: nqv Date: Wed, 9 Dec 2020 15:39:38 +0700 Subject: [PATCH] fix for issue https://github.com/topcoder-platform/community-app/issues/5068 --- src/utils/challenge/filter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/challenge/filter.js b/src/utils/challenge/filter.js index 4d151429..ea86826d 100644 --- a/src/utils/challenge/filter.js +++ b/src/utils/challenge/filter.js @@ -158,10 +158,10 @@ function filterByEvents(challenge, state) { } function filterByText(challenge, state) { - if (!state.name) return true; + if (!state.search) return true; const str = `${challenge.name} ${challenge.tags} ${challenge.platforms} ${challenge.tags}` .toLowerCase(); - return str.includes(state.name.toLowerCase()); + return str.includes(state.search.toLowerCase()); } function filterByTrack(challenge, state) {