Skip to content

Commit

Permalink
Merge error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
vitormateusalmeida committed Apr 23, 2019
1 parent e73246e commit 6291493
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ class VideoPreview extends Component {
const { cameraAllowed, isInitialDeviceSet, isStartSharingDisabled } = this.state;
const getDevices = await navigator.mediaDevices.enumerateDevices();
const hasVideoInput = getDevices.filter(device => device.kind === 'videoinput').length > 0;
const isStartSharingDisabled = !(hasVideoInput && cameraAllowed && isInitialDeviceSet);

const newSharingDisabled = !(hasVideoInput && cameraAllowed && isInitialDeviceSet);
if (newSharingDisabled !== isStartSharingDisabled) {
Expand Down

0 comments on commit 6291493

Please sign in to comment.