mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-05 05:18:44 -05:00
fix(client): review pages (#57086)
This commit is contained in:
@@ -254,7 +254,7 @@ const ShowGeneric = ({
|
||||
/>
|
||||
)}
|
||||
|
||||
{!!questions && (
|
||||
{questions.length > 0 && (
|
||||
<MultipleChoiceQuestions
|
||||
questions={questions}
|
||||
selectedOptions={selectedMcqOptions}
|
||||
|
||||
@@ -324,6 +324,7 @@ function generateChallengeCreator(lang, englishPath, i18nPath) {
|
||||
|
||||
if (!challenge.description) challenge.description = '';
|
||||
if (!challenge.instructions) challenge.instructions = '';
|
||||
if (!challenge.questions) challenge.questions = [];
|
||||
|
||||
// const superOrder = getSuperOrder(meta.superBlock);
|
||||
// NOTE: Use this version when a super block is in beta.
|
||||
|
||||
@@ -243,7 +243,7 @@ const schema = Joi.object()
|
||||
challengeTypes.theOdinProject
|
||||
],
|
||||
then: Joi.array().items(questionJoi).min(1).required(),
|
||||
otherwise: Joi.forbidden()
|
||||
otherwise: Joi.array().length(0)
|
||||
}),
|
||||
quizzes: Joi.when('challengeType', {
|
||||
is: challengeTypes.quiz,
|
||||
|
||||
Reference in New Issue
Block a user