Skip to content

Commit 9714932

Browse files
author
bieshan
committed
fix: logic :neckbeard:
1 parent d7431a6 commit 9714932

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pages/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ const Home = () => {
6666
const transcript = result[0].transcript;
6767
setTranscript(transcript);
6868
if (result.isFinal) {
69-
if (transcript == "") {
70-
return;
71-
}
7269
if (tagValues.some(value => transcript.includes(value))) {
7370
// NOTE: ユーザーが効果音を追加しなければデフォルトを鳴らす
7471
(userMusic || music).play();
@@ -84,7 +81,6 @@ const Home = () => {
8481
});
8582
// 文章確定したら候補を削除
8683
setTranscript("");
87-
return;
8884
}
8985
});
9086
};

0 commit comments

Comments
 (0)