File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -241,8 +241,10 @@ export function getFilterFunction(state) {
241
241
* @param {Object } state
242
242
* @return {Function }
243
243
*/
244
- export function getReviewOpportunitiesFilterFunction ( state ) {
244
+ export function getReviewOpportunitiesFilterFunction ( state , validSubtracks ) {
245
245
return ( opp ) => {
246
+ const newSubTrack = _ . find ( validSubtracks , { abbreviation : opp . challenge . subTrack } ) || { } ;
247
+
246
248
// Review Opportunity objects have a challenge field which
247
249
// is largely compatible with many of the existing filter functions
248
250
// especially after a few normalization tweaks
@@ -256,6 +258,7 @@ export function getReviewOpportunitiesFilterFunction(state) {
256
258
communities : new Set ( [ // Used to filter by Track, and communities at a future date
257
259
opp . challenge . track . toLowerCase ( ) ,
258
260
] ) ,
261
+ typeId : newSubTrack . id ,
259
262
} ;
260
263
261
264
return (
You can’t perform that action at this time.
0 commit comments