File tree 2 files changed +2
-2
lines changed
components/challenge-detail/Specification
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ function getListInit(uuid) {
38
38
* @return {Promise }
39
39
*/
40
40
function getListDone ( uuid , auth ) {
41
- const groups = _ . get ( auth , 'profile.groups' , [ ] ) . map ( g => g . oldId ) ;
41
+ const groups = _ . get ( auth , 'profile.groups' , [ ] ) . map ( g => g . id ) ;
42
42
return getCommunitiesService ( auth . tokenV3 )
43
43
. getList ( groups ) . then ( list => ( { list, uuid } ) ) ;
44
44
}
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ export default function ChallengeDetailsView(props) {
85
85
let isWipro = false ;
86
86
const wiproCommunity = communitiesList . find ( x => x . communityId === 'wipro' ) ;
87
87
if ( wiproCommunity && groups ) {
88
- isWipro = wiproCommunity . groupIds . some ( id => groups [ id ] ) ;
88
+ isWipro = wiproCommunity . groupIds . some ( id => groups . includes ( id ) ) ;
89
89
}
90
90
91
91
let accentedStyle = '' ;
You can’t perform that action at this time.
0 commit comments