File tree 1 file changed +2
-0
lines changed
src/shared/components/challenge-listing/Filters
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import SwitchWithLabel from 'components/SwitchWithLabel';
7
7
import { challenge as challengeUtils } from 'topcoder-react-lib' ;
8
8
// import { COMPETITION_TRACKS as TRACKS } from 'utils/tc';
9
9
import _ from 'lodash' ;
10
+ import { BUCKETS } from 'utils/challenge-listing/buckets' ;
10
11
11
12
// import localStorage from 'localStorage';
12
13
import ChallengeSearchBar from './ChallengeSearchBar' ;
@@ -49,6 +50,7 @@ export default function ChallengeFilters({
49
50
if ( filterState . events && filterState . events . length ) filterRulesCount += 1 ;
50
51
if ( filterState . tags && filterState . tags . length ) filterRulesCount += 1 ;
51
52
if ( filterState . types && filterState . types . length ) filterRulesCount += 1 ;
53
+ if ( activeBucket === BUCKETS . ALL && filterState . status && filterState . status !== 'All' ) filterRulesCount += 1 ;
52
54
if ( filterState . endDateStart || filterState . startDateEnd ) {
53
55
filterRulesCount += 1 ;
54
56
}
You can’t perform that action at this time.
0 commit comments