Fix display of zipline/basejump completion in account view for new solutions.

This commit is contained in:
terakilobyte
2015-05-26 11:30:06 -04:00
parent e7c855d72f
commit 9b8a7cdd49
2 changed files with 7 additions and 2 deletions

View File

@@ -398,8 +398,8 @@ exports.returnUser = function(req, res, next) {
user.currentStreak = user.currentStreak || 1;
user.longestStreak = user.longestStreak || 1;
var challenges = user.completedCoursewares.filter(function ( obj ) {
return !!obj.solution;
var challenges = user.completedChallenges.filter(function ( obj ) {
return obj.challengeType === 3 || obj.challengeType === 4;
});
res.render('account/show', {