From 0c4a780f54e8dea928f90d84bcee9f7b5bdbb7fa Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Mon, 7 Dec 2015 12:20:25 -0800 Subject: [PATCH] Add logic to allow coming soon challenge to be seen and not used --- server/boot/challenge.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/boot/challenge.js b/server/boot/challenge.js index 89a28f4d88..e4e9b09484 100644 --- a/server/boot/challenge.js +++ b/server/boot/challenge.js @@ -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 => {