diff --git a/client/src/templates/Challenges/video/Show.js b/client/src/templates/Challenges/video/Show.js index 8b71a77a19..81ada307c2 100644 --- a/client/src/templates/Challenges/video/Show.js +++ b/client/src/templates/Challenges/video/Show.js @@ -63,7 +63,6 @@ const propTypes = { challengeMeta: PropTypes.object }), t: PropTypes.func.isRequired, - translationPending: PropTypes.bool.isRequired, updateChallengeMeta: PropTypes.func.isRequired, updateSolutionFormValues: PropTypes.func.isRequired }; @@ -338,6 +337,7 @@ export const query = graphql` answers solution } + translationPending } } `; diff --git a/curriculum/schema/challengeSchema.js b/curriculum/schema/challengeSchema.js index 72e1ff8799..6c468d1caa 100644 --- a/curriculum/schema/challengeSchema.js +++ b/curriculum/schema/challengeSchema.js @@ -100,7 +100,7 @@ const schema = Joi.object() template: Joi.string().allow(''), time: Joi.string().allow(''), title: Joi.string().required(), - translationPending: Joi.bool() + translationPending: Joi.bool().required() }) .xor('helpCategory', 'isPrivate');