Merge branch 'staging' of github.com:FreeCodeCamp/freecodecamp into staging
This commit is contained in:
@ -509,7 +509,7 @@ module.exports = function(app) {
|
|||||||
// get the id's of all the users completed challenges
|
// get the id's of all the users completed challenges
|
||||||
const completedChallenges = !user.completedChallenges ?
|
const completedChallenges = !user.completedChallenges ?
|
||||||
[] :
|
[] :
|
||||||
_.uniq(user.completedChallenges).map(({ id }) => id);
|
_.uniq(user.completedChallenges).map(({ id, _id }) => id || _id);
|
||||||
|
|
||||||
const camperCount$ = userCount$()
|
const camperCount$ = userCount$()
|
||||||
.map(camperCount => numberWithCommas(camperCount));
|
.map(camperCount => numberWithCommas(camperCount));
|
||||||
|
Reference in New Issue
Block a user