Merge pull request #59 from danecando/patch-1

useDevices bug fix
This commit is contained in:
Harshith Pabbati 2022-02-03 15:53:46 +05:30 committed by GitHub
commit d735fb4e62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ export const useDevices = (callObject) => {
const setCamDevice = useCallback(
async (newCam, useLocalStorage = true) => {
if (!callObject || newCam.deviceId === currentDevices?.cam?.deviceId) {
if (!callObject || newCam.deviceId === currentDevices?.camera?.deviceId) {
return;
}