update h2 text on home page and possibly fix persistant challenge.js bug

This commit is contained in:
Michael Q Larson
2014-11-11 00:58:22 -08:00
parent a0be4387f0
commit d8d2fe694d
3 changed files with 8 additions and 10 deletions

View File

@@ -12,13 +12,7 @@ exports.returnChallenge = function(req, res) {
video: c.video,
time: c.time,
steps: c.steps,
cc: req.user.challengesCompleted
}, function(err, html) {
if(err) {
res.redirect('/');
} else {
res.end(html);
}
cc: req.user.challengesCompleted || []
});
});
};