diff --git a/resources/views/partials/speech_recognition.blade.php b/resources/views/partials/speech_recognition.blade.php index c3466013ad..0a78c13870 100644 --- a/resources/views/partials/speech_recognition.blade.php +++ b/resources/views/partials/speech_recognition.blade.php @@ -127,11 +127,8 @@ recognition.onend = function() { recognizing = false; $('.fa-microphone').show(); - $('#search').val(''); - if (ignore_onend) { - return; - } - if (!final_transcript) { + if (ignore_onend || !final_transcript) { + $('#search').val(''); return; } $('#search-form').submit();