From edd73619c3bde3f9c4eebb954e5c539f9f3db8da Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Sat, 30 Sep 2023 11:20:11 +0200 Subject: [PATCH] fix: Fix `useCameraDevices` ignoring position --- package/src/devices/getCameraDevice.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/src/devices/getCameraDevice.ts b/package/src/devices/getCameraDevice.ts index d1ea40e..d92aab3 100644 --- a/package/src/devices/getCameraDevice.ts +++ b/package/src/devices/getCameraDevice.ts @@ -44,7 +44,7 @@ export function getCameraDevice(devices: CameraDevice[], position: CameraPositio if (bestDevice == null) return undefined // Compare each device using a point scoring system - for (const device of devices) { + for (const device of filtered) { let leftPoints = 0 let rightPoints = 0