From d3704d2b9dcc7ba363cac31ac02636f245fe67a7 Mon Sep 17 00:00:00 2001 From: Ohkubo Kohei Date: Thu, 13 Jun 2024 08:29:17 +0900 Subject: [PATCH] minor fix --- src/_components/RomajiField.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/_components/RomajiField.tsx b/src/_components/RomajiField.tsx index ac155c5..c92988e 100644 --- a/src/_components/RomajiField.tsx +++ b/src/_components/RomajiField.tsx @@ -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");