diff --git a/src/utils/challenge/filter.js b/src/utils/challenge/filter.js index 30fe6210..ca185d0d 100644 --- a/src/utils/challenge/filter.js +++ b/src/utils/challenge/filter.js @@ -241,8 +241,10 @@ export function getFilterFunction(state) { * @param {Object} state * @return {Function} */ -export function getReviewOpportunitiesFilterFunction(state) { +export function getReviewOpportunitiesFilterFunction(state, validSubtracks) { return (opp) => { + const newSubTrack = _.find(validSubtracks, { abbreviation: opp.challenge.subTrack }) || {}; + // Review Opportunity objects have a challenge field which // is largely compatible with many of the existing filter functions // especially after a few normalization tweaks @@ -256,6 +258,7 @@ export function getReviewOpportunitiesFilterFunction(state) { communities: new Set([ // Used to filter by Track, and communities at a future date opp.challenge.track.toLowerCase(), ]), + typeId: newSubTrack.id, }; return (