diff --git a/src/settings/SettingsModal.tsx b/src/settings/SettingsModal.tsx index 1e45d55..90e4e46 100644 --- a/src/settings/SettingsModal.tsx +++ b/src/settings/SettingsModal.tsx @@ -78,7 +78,7 @@ export const SettingsModal = (props: Props) => { onSelectionChange={setAudioInput} > {audioInputs.map(({ deviceId, label }) => ( - {label} + {!!label && label.trim().length > 0 ? label : "Default microphone"} ))} {audioOutputs.length > 0 && ( @@ -88,7 +88,7 @@ export const SettingsModal = (props: Props) => { onSelectionChange={setAudioOutput} > {audioOutputs.map(({ deviceId, label }) => ( - {label} + {!!label && label.trim().length > 0 ? label : "Default speaker"} ))} )} @@ -119,7 +119,7 @@ export const SettingsModal = (props: Props) => { onSelectionChange={setVideoInput} > {videoInputs.map(({ deviceId, label }) => ( - {label} + {!!label && label.trim().length > 0 ? label : "Default camera"} ))}