Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kuboon committed Jun 12, 2024
1 parent 5c6f129 commit d3704d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/_components/RomajiField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default function RomajiField({ answer, voice }: Args) {
}
if (match.every((x) => x.state === "ok")) {
input.value = "";
match.length = 0;
document.dispatchEvent(new Event("game:done"));
}
const nextUnit = match.find((x) => x.state !== "ok");
Expand Down

0 comments on commit d3704d2

Please sign in to comment.