Skip to content

Commit

Permalink
Correct double quotes to single quotes
Browse files Browse the repository at this point in the history
@kognise - i'm stuck in this weird other account
  • Loading branch information
hackclub-bot committed Mar 15, 2023
1 parent 4617955 commit 42a9fba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/codemirror.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function CodeMirror(props: CodeMirrorProps) {
if (!parent.current) throw new Error('Oh golly! The editor parent ref is null')
let lastCode: string = props.initialCode ?? ''
const editor = new EditorView({
state: createEditorState(props.initialCode ? props.initialCode : "", () => {
state: createEditorState(props.initialCode ? props.initialCode : '', () => {
if (editor.state.doc.toString() === lastCode) return
lastCode = editor.state.doc.toString()
onCodeChangeRef.current?.()
Expand All @@ -40,4 +40,4 @@ export default function CodeMirror(props: CodeMirrorProps) {
return (
<div class={`${styles.container} ${props.class ?? ''}`} ref={parent} />
)
}
}

0 comments on commit 42a9fba

Please sign in to comment.