Fixes bug referencing wrong key for camera on currentDevices state
This commit is contained in:
parent
74d308bfa2
commit
ea62efcf8c
|
|
@ -182,7 +182,7 @@ export const useDevices = (callObject) => {
|
||||||
|
|
||||||
const setCamDevice = useCallback(
|
const setCamDevice = useCallback(
|
||||||
async (newCam, useLocalStorage = true) => {
|
async (newCam, useLocalStorage = true) => {
|
||||||
if (!callObject || newCam.deviceId === currentDevices?.cam?.deviceId) {
|
if (!callObject || newCam.deviceId === currentDevices?.camera?.deviceId) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue