Skip to content

Commit c84bd11

Browse files
gap-editorAniket-Engg
authored andcommitted
Update remix-ui-editor.tsx
1 parent 7f1463d commit c84bd11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/remix-ui/editor/src/lib/remix-ui-editor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export const EditorUI = (props: EditorUIProps) => {
183183
const currentFunction = useRef('')
184184
const currentFileRef = useRef('')
185185
const currentUrlRef = useRef('')
186-
let currenFunctionNode = useRef('')
186+
let currentFunctionNode = useRef('')
187187

188188
// const currentDecorations = useRef({ sourceAnnotationsPerFile: {}, markerPerFile: {} }) // decorations that are currently in use by the editor
189189
// const registeredDecorations = useRef({}) // registered decorations
@@ -784,7 +784,7 @@ export const EditorUI = (props: EditorUIProps) => {
784784
// const cm = await await props.plugin.call('remixAI', 'code_explaining', message)
785785
const cm = await props.plugin.call('remixAI' as any, 'chatPipe', 'solidity_answer', message, '', pipeMessage)
786786
const natSpecCom = "\n" + extractNatspecComments(cm)
787-
const cln = await props.plugin.call('codeParser', "getLineColumnOfNode", currenFunctionNode)
787+
const cln = await props.plugin.call('codeParser', "getLineColumnOfNode", currentFunctionNode)
788788
const range = new monacoRef.current.Range(cln.start.line, cln.start.column, cln.start.line, cln.start.column)
789789
const lines = natSpecCom.split('\n')
790790
const newNatSpecCom = []

0 commit comments

Comments
 (0)