diff --git a/src/pages/EditorComponent.js b/src/pages/EditorComponent.js index dcac881..7cf64d7 100644 --- a/src/pages/EditorComponent.js +++ b/src/pages/EditorComponent.js @@ -62,7 +62,7 @@ const WelcomeText = styled("span")(({ theme }) => ({ function EditorComponent() { const [code, setCode] = useState(null); - const [setOutput] = useState([]); + const [output, setOutput] = useState([]); const [currentLanguage, setCurrentLanguage] = useState( LANGUAGES[0].DEFAULT_LANGUAGE @@ -277,10 +277,10 @@ function EditorComponent() { - {/* {Array.isArray(output) && + {Array.isArray(output) && output.map((result, i) => { return
{result}
; - })} */} + })}