Fixing undefined challengeName on info pages
This commit is contained in:
@@ -11,6 +11,7 @@ var highestChallengeNumber = 53;
|
||||
|
||||
exports.returnChallenge = function(req, res, next) {
|
||||
var challengeNumber = parseInt(req.params.challengeNumber) || 0;
|
||||
debug(challengeNumber);
|
||||
if (challengeNumber > highestChallengeNumber) {
|
||||
req.flash('errors', {
|
||||
msg: "It looks like you've either completed all the challenges we have available or requested a challenge we don't have."
|
||||
|
Reference in New Issue
Block a user