diff --git a/src/components/EditorTextArea.js b/src/components/EditorTextArea.js index b1e0700..9c26796 100644 --- a/src/components/EditorTextArea.js +++ b/src/components/EditorTextArea.js @@ -14,10 +14,10 @@ export default function EditorTextArea({ code, setCode, language, fontSize }) { .join('\n'); } - const lastBracketState = useState(null); + const autoBracketState = useState(null); const editorRef = useRef(); function keydown(e) { - handleKeydown(e, editorRef.current, lastBracketState); + handleKeydown(e, editorRef.current, autoBracketState); } return (