Hide microphone switch when one opt

This commit is contained in:
Sara
2023-09-26 12:34:48 +02:00
parent 1c7af28818
commit c4a071c043

View File

@@ -339,7 +339,7 @@ export default function Recorder(props: RecorderProps) {
>
{isRecording ? "Stop" : "Record"}
</button>
{props.audioDevices && props.audioDevices?.length > 0 && (
{props.audioDevices && props.audioDevices?.length > 1 && (
<>
<button
className="text-center text-blue-400 hover:text-blue-700 ml-2 md:ml:4 p-2 rounded-lg focus-visible:outline outline-blue-400"