File tree 1 file changed +8
-5
lines changed
src/shared/utils/challenge-listing 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -136,12 +136,15 @@ function filterByText(challenge, state) {
136
136
137
137
function filterByTrack ( challenge , state ) {
138
138
if ( ! state . tracks ) return true ;
139
- let flag ;
140
- // include code challenges with 'data science' tag in datasci track
141
- if ( _ . get ( state . tracks , 'datasci' ) ) {
142
- flag = _ . includes ( challenge . technologies , 'Data Science' ) ;
139
+
140
+ /* Development challenges having Data Science tech tag, still should be
141
+ * included into data science track. */
142
+ if ( state . tracks [ COMPETITION_TRACKS . DATA_SCIENCE ]
143
+ && _ . includes ( challenge . technologies , 'Data Science' ) ) {
144
+ return true ;
143
145
}
144
- return flag || _ . keys ( state . tracks ) . some ( track => challenge . communities . has ( track ) ) ;
146
+
147
+ return _ . keys ( state . tracks ) . some ( track => challenge . communities . has ( track ) ) ;
145
148
}
146
149
147
150
function filterByUpcoming ( challenge , state ) {
You can’t perform that action at this time.
0 commit comments