From f5b652b6722157b77b4b3202e5569ee27283f652 Mon Sep 17 00:00:00 2001 From: sr_jr <simran.topcoder@gmail.com> Date: Mon, 25 May 2020 15:32:36 +0530 Subject: [PATCH] fix for issue #4403 --- src/utils/challenge/filter.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 (