update the completed all challenges message

This commit is contained in:
Quincy Larson
2015-08-25 15:51:47 -07:00
parent 56b18f313b
commit 07f66b61f4

View File

@ -208,10 +208,12 @@ module.exports = function(app) {
debug('next challengeName', nextChallengeName);
if (!nextChallengeName || nextChallengeName === firstChallenge) {
req.flash('errors', {
msg: 'It looks like you have finished all of our challenges.' +
' Great job! Now on to helping nonprofits!'
msg: 'Once you have completed all of our challenges, you should '+
'join our <a href=\"//gitter.im/freecodecamp/HalfWayClub\"'+
'target=\"_blank\">Half Way Club</a> and start getting '+
'ready for our nonprofit projects.'
});
return res.redirect('/challenges/' + firstChallenge);
return res.redirect('/map');
}
res.redirect('/challenges/' + nextChallengeName);
}