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