Fixes bug referencing wrong key for camera on currentDevices state

This commit is contained in:
Dane Grant 2022-01-09 19:51:45 -05:00 committed by GitHub
parent 74d308bfa2
commit ea62efcf8c
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;
}