Skip to content

Commit ddccef1

Browse files
authoredMay 25, 2020
Merge pull request #167 from simranb86/issue_4403
fix for issue #4403
2 parents 4c94cb2 + f5b652b commit ddccef1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/utils/challenge/filter.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,10 @@ export function getFilterFunction(state) {
241241
* @param {Object} state
242242
* @return {Function}
243243
*/
244-
export function getReviewOpportunitiesFilterFunction(state) {
244+
export function getReviewOpportunitiesFilterFunction(state, validSubtracks) {
245245
return (opp) => {
246+
const newSubTrack = _.find(validSubtracks, { abbreviation: opp.challenge.subTrack }) || {};
247+
246248
// Review Opportunity objects have a challenge field which
247249
// is largely compatible with many of the existing filter functions
248250
// especially after a few normalization tweaks
@@ -256,6 +258,7 @@ export function getReviewOpportunitiesFilterFunction(state) {
256258
communities: new Set([ // Used to filter by Track, and communities at a future date
257259
opp.challenge.track.toLowerCase(),
258260
]),
261+
typeId: newSubTrack.id,
259262
};
260263

261264
return (

0 commit comments

Comments
 (0)
Please sign in to comment.