diff --git a/src/shared/actions/tc-communities/index.js b/src/shared/actions/tc-communities/index.js index c2f30c6ea9..4b14591442 100644 --- a/src/shared/actions/tc-communities/index.js +++ b/src/shared/actions/tc-communities/index.js @@ -38,7 +38,7 @@ function getListInit(uuid) { * @return {Promise} */ function getListDone(uuid, auth) { - const groups = _.get(auth, 'profile.groups', []).map(g => g.oldId); + const groups = _.get(auth, 'profile.groups', []).map(g => g.id); return getCommunitiesService(auth.tokenV3) .getList(groups).then(list => ({ list, uuid })); } diff --git a/src/shared/components/challenge-detail/Specification/index.jsx b/src/shared/components/challenge-detail/Specification/index.jsx index 96d728e4f5..b6d3566c53 100644 --- a/src/shared/components/challenge-detail/Specification/index.jsx +++ b/src/shared/components/challenge-detail/Specification/index.jsx @@ -85,7 +85,7 @@ export default function ChallengeDetailsView(props) { let isWipro = false; const wiproCommunity = communitiesList.find(x => x.communityId === 'wipro'); if (wiproCommunity && groups) { - isWipro = wiproCommunity.groupIds.some(id => groups[id]); + isWipro = wiproCommunity.groupIds.some(id => groups.includes(id)); } let accentedStyle = '';