From 7fd4bd4d57e3c5931639fd9054c71e500c99feee Mon Sep 17 00:00:00 2001 From: "Luiz R. Rodrigues" Date: Thu, 23 Jul 2020 09:49:17 -0300 Subject: [PATCH] Fix var in filterByGroupIds in challenge listing filter --- src/utils/challenge/filter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/challenge/filter.js b/src/utils/challenge/filter.js index ca6de71d..269376ca 100644 --- a/src/utils/challenge/filter.js +++ b/src/utils/challenge/filter.js @@ -71,8 +71,8 @@ import { COMPETITION_TRACKS, REVIEW_OPPORTUNITY_TYPES } from '../tc'; */ function filterByGroupIds(challenge, state) { - if (!state.groups) return true; - return state.groups.some(id => challenge.groups[id]); + if (!state.groupIds) return true; + return state.groupIds.some(id => challenge.groups[id]); } function filterByRegistrationOpen(challenge, state) {