Fix next/current challenge routes
prevent bad id's from throwing
This commit is contained in:
@@ -105,6 +105,7 @@ function buildDisplayChallenges(challengeMap = {}, timezone) {
|
||||
|
||||
return finalChallenge;
|
||||
})
|
||||
.filter(({ challengeType }) => challengeType !== 6)
|
||||
.groupBy(getChallengeGroup)
|
||||
.flatMap(group$ => {
|
||||
return group$.toArray().map(challenges => ({
|
||||
|
Reference in New Issue
Block a user