add yet unfinished curriculum overview to challengeMap

This commit is contained in:
Quincy Larson
2015-05-31 02:01:55 -07:00
parent 9dc504a99d
commit 5380a9ea74
8 changed files with 246 additions and 48 deletions

View File

@@ -22,12 +22,11 @@ module.exports = {
var noDuplicatedChallenges = R.uniq(completedList);
var challengeList = resources.getChallengeMapForDisplay();
var completedChallengeList = noDuplicatedChallenges
.map(function(challenge) {
return challenge._id;
});
var challengeList = resources.getChallengeMapForDisplay(completedChallengeList);
function numberWithCommas(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');