Skip to content

Commit f39c012

Browse files
committed
Fix getChallengeRegistrants filter to not logged user
Also update to version 100.19.47
1 parent d5ba25f commit f39c012

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"lint:js": "./node_modules/.bin/eslint --ext .js,.jsx .",
3232
"test": "npm run lint && npm run jest"
3333
},
34-
"version": "1000.19.46",
34+
"version": "1000.19.47",
3535
"dependencies": {
3636
"auth0-js": "^6.8.4",
3737
"config": "^3.2.0",

src/services/challenges.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,9 @@ class ChallengesService {
407407
.then(checkErrorV5).then(res => res.result);
408408

409409
/* API will return all roles to currentUser, so need to filter in FE */
410-
registrants = _.filter(registrants, r => r.roleId === roleId);
410+
if (roleId) {
411+
registrants = _.filter(registrants, r => r.roleId === roleId);
412+
}
411413

412414
return registrants || [];
413415
}

0 commit comments

Comments
 (0)