diff --git a/src/components/mini-widgets/MiniVideoRecorder.vue b/src/components/mini-widgets/MiniVideoRecorder.vue index 9b7a3432b..adb60c8b7 100644 --- a/src/components/mini-widgets/MiniVideoRecorder.vue +++ b/src/components/mini-widgets/MiniVideoRecorder.vue @@ -98,12 +98,10 @@ watch(nameSelectedStream, () => { }) const toggleRecording = async (): Promise => { - if (nameSelectedStream.value === undefined) { - Swal.fire({ text: 'No stream selected. Please choose one before continuing.', icon: 'error' }) - return - } if (isRecording.value) { - videoStore.stopRecording(nameSelectedStream.value) + if (nameSelectedStream.value !== undefined) { + videoStore.stopRecording(nameSelectedStream.value) + } return } // Open dialog so user can choose the stream which will be recorded