Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
derarion committed Dec 31, 2023
1 parent 99fd4c2 commit bf64f01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import init, {
} from "../momonga/pkg/momonga";

function App() {
const isWasmIntitializedRef = useRef<boolean>(false);
const isWasmInitializedRef = useRef<boolean>(false);

const srcRef = useRef<string>("");
const [isParseError, setIsParseError] = useState<boolean>(false);
Expand All @@ -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));
}, []);

Expand All @@ -71,7 +71,7 @@ function App() {
useEffect(() => {
(async () => {
await init();
isWasmIntitializedRef.current = true;
isWasmInitializedRef.current = true;
})();

const handleStdoutEvent = (ev: Event) => {
Expand Down

0 comments on commit bf64f01

Please sign in to comment.