Skip to content

Commit

Permalink
fix: format :neckbeard:
Browse files Browse the repository at this point in the history
  • Loading branch information
bieshan committed Jan 5, 2021
1 parent df491ac commit de86998
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,8 @@ const Home = () => {
}
// 音声認識が完了して文章が確定
setFinalText(prevState => {
if (android) {
// Android chromeなら値をそのまま返す
return transcript;
};
return prevState + transcript;
// Android chromeなら値をそのまま返す
return android ? transcript : (prevState + transcript);
});
// 文章確定したら候補を削除
setTranscript("");
Expand Down

0 comments on commit de86998

Please sign in to comment.