Skip to content

Commit

Permalink
Add label backup "unlabeled microphone" in case there is no label
Browse files Browse the repository at this point in the history
Fixes #705

This backup is not i18ned, but (a) it's very rare it will be used and
(b) microphone names are not i18ned either.
  • Loading branch information
LukasKalbertodt committed Sep 7, 2020
1 parent 3cbc918 commit 6e7dcc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/studio/audio-setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const MicrophonePreview = ({ reselectSource, enterStudio }) => {
>
{
devices.map((d, i) => (
<option key={i} value={d.deviceId}>{ d.label }</option>
<option key={i} value={d.deviceId}>{ d.label || "unlabeled microphone" }</option>
))
}
</select>
Expand Down

0 comments on commit 6e7dcc1

Please sign in to comment.