feat: hide isHidden challenges

This commit is contained in:
Oliver Eyton-Williams
2020-05-20 15:45:34 +02:00
committed by Mrugesh Mohapatra
parent d865e2cb0e
commit 68aef571ee
8 changed files with 15 additions and 8 deletions

View File

@ -67,9 +67,12 @@ exports.createChallengePages = createPage => ({ node }, index, thisArray) => {
required = [],
template,
challengeType,
id
id,
isHidden
} = node;
if (challengeType === 7) {
// TODO: challengeType === 7 and isPrivate are the same, right? If so, we
// should remove one of them.
if (challengeType === 7 || isHidden) {
return null;
}