diff --git a/src/settings/SettingsModal.tsx b/src/settings/SettingsModal.tsx
index 1e45d5574..7613f0d5b 100644
--- a/src/settings/SettingsModal.tsx
+++ b/src/settings/SettingsModal.tsx
@@ -77,8 +77,12 @@ export const SettingsModal = (props: Props) => {
selectedKey={audioInput}
onSelectionChange={setAudioInput}
>
- {audioInputs.map(({ deviceId, label }) => (
- - {label}
+ {audioInputs.map(({ deviceId, label }, index) => (
+ -
+ {!!label && label.trim().length > 0
+ ? label
+ : `Microphone ${index + 1}`}
+
))}
{audioOutputs.length > 0 && (
@@ -87,8 +91,12 @@ export const SettingsModal = (props: Props) => {
selectedKey={audioOutput}
onSelectionChange={setAudioOutput}
>
- {audioOutputs.map(({ deviceId, label }) => (
- - {label}
+ {audioOutputs.map(({ deviceId, label }, index) => (
+ -
+ {!!label && label.trim().length > 0
+ ? label
+ : `Speaker ${index + 1}`}
+
))}
)}
@@ -118,8 +126,12 @@ export const SettingsModal = (props: Props) => {
selectedKey={videoInput}
onSelectionChange={setVideoInput}
>
- {videoInputs.map(({ deviceId, label }) => (
- - {label}
+ {videoInputs.map(({ deviceId, label }, index) => (
+ -
+ {!!label && label.trim().length > 0
+ ? label
+ : `Camera ${index + 1}`}
+
))}