Add logic to allow coming soon challenge to be seen and not used

This commit is contained in:
Berkeley Martinez
2015-12-07 12:20:25 -08:00
parent fe8fe0ff0d
commit 0c4a780f54

View File

@ -280,7 +280,12 @@ module.exports = function(app) {
debug('looking for %s', testChallengeName);
challenge$
.filter((challenge) => {
return testChallengeName.test(challenge.name);
return testChallengeName.test(challenge.name) &&
(
isDev ||
!challenge.isComingSoon ||
(isBeta && challenge.isBeta)
);
})
.last({ defaultValue: null })
.flatMap(challenge => {