diff --git a/web/src/components/IdeEditor/IdeEditor.js b/web/src/components/IdeEditor/IdeEditor.js index 5686eba..914562a 100644 --- a/web/src/components/IdeEditor/IdeEditor.js +++ b/web/src/components/IdeEditor/IdeEditor.js @@ -6,14 +6,14 @@ const IdeEditor = () => { const { state, dispatch } = useContext(IdeContext) function handleCodeChange(value, _event) { - dispatch({ type: 'updateCode', payload: target.value }) + dispatch({ type: 'updateCode', payload: value }) } return ( ) }