We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5ba25f commit f39c012Copy full SHA for f39c012
package.json
@@ -31,7 +31,7 @@
31
"lint:js": "./node_modules/.bin/eslint --ext .js,.jsx .",
32
"test": "npm run lint && npm run jest"
33
},
34
- "version": "1000.19.46",
+ "version": "1000.19.47",
35
"dependencies": {
36
"auth0-js": "^6.8.4",
37
"config": "^3.2.0",
src/services/challenges.js
@@ -407,7 +407,9 @@ class ChallengesService {
407
.then(checkErrorV5).then(res => res.result);
408
409
/* API will return all roles to currentUser, so need to filter in FE */
410
- registrants = _.filter(registrants, r => r.roleId === roleId);
+ if (roleId) {
411
+ registrants = _.filter(registrants, r => r.roleId === roleId);
412
+ }
413
414
return registrants || [];
415
}
0 commit comments