Skip to content

Commit 73169c2

Browse files
committed
chore: fix typo in error
1 parent 2995737 commit 73169c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/contexts/editor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { editor as monaco } from "monaco-editor";
22
import {
3+
createContext,
34
type FC,
45
type PropsWithChildren,
5-
createContext,
66
useContext,
77
useRef,
88
} from "react";
@@ -24,7 +24,7 @@ export const useEditor = () => {
2424
const editor = useContext(EditorContext);
2525

2626
if (!editor) {
27-
throw new Error("useEditor must eb used within an EditorProvider");
27+
throw new Error("useEditor must be used within an EditorProvider");
2828
}
2929

3030
return editor;

0 commit comments

Comments
 (0)