diff --git a/src/App.tsx b/src/App.tsx index 9683a7a..39c6280 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -20,7 +20,7 @@ import init, { } from "../momonga/pkg/momonga"; function App() { - const isWasmIntitializedRef = useRef(false); + const isWasmInitializedRef = useRef(false); const srcRef = useRef(""); const [isParseError, setIsParseError] = useState(false); @@ -46,7 +46,7 @@ function App() { const handleSrcChange = useCallback((src: string) => { srcRef.current = src; - if (!isWasmIntitializedRef.current) return; + if (!isWasmInitializedRef.current) return; setIsParseError(is_momonga_parse_error(src)); }, []); @@ -71,7 +71,7 @@ function App() { useEffect(() => { (async () => { await init(); - isWasmIntitializedRef.current = true; + isWasmInitializedRef.current = true; })(); const handleStdoutEvent = (ev: Event) => {