feat: hide isHidden challenges
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
d865e2cb0e
commit
68aef571ee
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user