From ea62efcf8cc9e64161eff499ebb7e7d403aba6b2 Mon Sep 17 00:00:00 2001 From: Dane Grant Date: Sun, 9 Jan 2022 19:51:45 -0500 Subject: [PATCH] Fixes bug referencing wrong key for camera on currentDevices state --- custom/shared/contexts/useDevices.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom/shared/contexts/useDevices.js b/custom/shared/contexts/useDevices.js index b2e677e..9d330f2 100644 --- a/custom/shared/contexts/useDevices.js +++ b/custom/shared/contexts/useDevices.js @@ -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; }