update the completed all challenges message
This commit is contained in:
@ -208,10 +208,12 @@ module.exports = function(app) {
|
|||||||
debug('next challengeName', nextChallengeName);
|
debug('next challengeName', nextChallengeName);
|
||||||
if (!nextChallengeName || nextChallengeName === firstChallenge) {
|
if (!nextChallengeName || nextChallengeName === firstChallenge) {
|
||||||
req.flash('errors', {
|
req.flash('errors', {
|
||||||
msg: 'It looks like you have finished all of our challenges.' +
|
msg: 'Once you have completed all of our challenges, you should '+
|
||||||
' Great job! Now on to helping nonprofits!'
|
'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);
|
res.redirect('/challenges/' + nextChallengeName);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user