diff --git a/client/src/templates/Challenges/components/Challenge-Description.js b/client/src/templates/Challenges/components/Challenge-Description.js index 284a318c611..fb0385a5c26 100644 --- a/client/src/templates/Challenges/components/Challenge-Description.js +++ b/client/src/templates/Challenges/components/Challenge-Description.js @@ -9,19 +9,22 @@ const propTypes = { section: PropTypes.string }; +function emptyInstruction(instructions) { + return (/^\s*<\/section>$/) + .test(instructions); +} + function ChallengeDescription({ description, instructions, section }) { return (
- {instructions ? ( + {!emptyInstruction(instructions) && (
-
- ) : ( -
)} +
); }