diff --git a/server/boot/challenge.js b/server/boot/challenge.js index e967118e06..ca4c25f451 100644 --- a/server/boot/challenge.js +++ b/server/boot/challenge.js @@ -157,7 +157,6 @@ module.exports = function(app) { .flatMap(superBlock => Observable.just(superBlock)) .shareReplay(); - superBlocks$.subscribe(() => {}); const User = app.models.User; const userCount$ = observeMethod(User, 'count'); @@ -192,7 +191,7 @@ module.exports = function(app) { // find challenge return challenge$ .map(challenge => challenge.toJSON()) - .filter(({ block }) => block !== 'Hikes') + .filter(({ superBlock }) => superBlock !== 'hikes') .filter(({ id }) => id === challengeId) // now lets find the block it belongs to .flatMap(challenge => { @@ -530,7 +529,7 @@ module.exports = function(app) { time: blockArray[0] && blockArray[0].time || '???' }; }) - .filter(({ name }) => name !== 'Hikes') + .filter(({ superBlock }) => superBlock !== 'hikes') // turn stream of blocks into a stream of an array .toArray() .doOnNext(blocks => { diff --git a/server/views/challengeMap/show.jade b/server/views/challengeMap/show.jade index 495b81009a..ddf8bee17d 100644 --- a/server/views/challengeMap/show.jade +++ b/server/views/challengeMap/show.jade @@ -45,7 +45,7 @@ block content .row .col-xs-12.col-sm-8.col-sm-offset-2 h3 800 Hours of Practice: - ol + ul for superBlock in superBlocks h1= superBlock.name - var i = 0