diff --git a/src/app/_components/challenges/challenge-content-info.tsx b/src/app/_components/challenges/challenge-content-info.tsx index b12f142..995ec59 100644 --- a/src/app/_components/challenges/challenge-content-info.tsx +++ b/src/app/_components/challenges/challenge-content-info.tsx @@ -61,11 +61,11 @@ export default function ChallengeContentInfo({ -
+{challengeData?.challenge_example_input}-+{challengeData?.challenge_example_output}diff --git a/src/app/_components/challenges/challenge-content.tsx b/src/app/_components/challenges/challenge-content.tsx index b455a31..6400f98 100644 --- a/src/app/_components/challenges/challenge-content.tsx +++ b/src/app/_components/challenges/challenge-content.tsx @@ -141,7 +141,7 @@ export default function ChallengeContentPage({ /> -+ diff --git a/src/app/_components/challenges/challenge-editor.tsx b/src/app/_components/challenges/challenge-editor.tsx index 3d78fe0..b90bc52 100644 --- a/src/app/_components/challenges/challenge-editor.tsx +++ b/src/app/_components/challenges/challenge-editor.tsx @@ -55,7 +55,7 @@ export default function ChallengeEditorWrapper({ }, [header, submission, setLanguage, language]); useEffect(() => { - setValue(value); + if (value.length > 0) setValue(value); }, []); return (