Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit b1973d7

Browse files
committed
undefined =/= ''
Signed-off-by: Michael Telatynski <[email protected]>
1 parent f4db83a commit b1973d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/structures/UserSettings.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ module.exports = React.createClass({
958958

959959
const audioInputs = this.state.mediaDevices.audioinput.slice(0);
960960
if (audioInputs.length > 0) {
961-
let defaultInput;
961+
let defaultInput = '';
962962
if (!audioInputs.some((input) => input.deviceId === 'default')) {
963963
audioInputs.unshift(defaultOption);
964964
} else {
@@ -978,7 +978,7 @@ module.exports = React.createClass({
978978

979979
const videoInputs = this.state.mediaDevices.videoinput.slice(0);
980980
if (videoInputs.length > 0) {
981-
let defaultInput;
981+
let defaultInput = '';
982982
if (!videoInputs.some((input) => input.deviceId === 'default')) {
983983
videoInputs.unshift(defaultOption);
984984
} else {

0 commit comments

Comments
 (0)