Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/utils/challenge/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 (
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy