Add logic to allow coming soon challenge to be seen and not used
This commit is contained in:
@ -280,7 +280,12 @@ module.exports = function(app) {
|
|||||||
debug('looking for %s', testChallengeName);
|
debug('looking for %s', testChallengeName);
|
||||||
challenge$
|
challenge$
|
||||||
.filter((challenge) => {
|
.filter((challenge) => {
|
||||||
return testChallengeName.test(challenge.name);
|
return testChallengeName.test(challenge.name) &&
|
||||||
|
(
|
||||||
|
isDev ||
|
||||||
|
!challenge.isComingSoon ||
|
||||||
|
(isBeta && challenge.isBeta)
|
||||||
|
);
|
||||||
})
|
})
|
||||||
.last({ defaultValue: null })
|
.last({ defaultValue: null })
|
||||||
.flatMap(challenge => {
|
.flatMap(challenge => {
|
||||||
|
Reference in New Issue
Block a user