fix: Fix useCameraDevices ignoring position

This commit is contained in:
Marc Rousavy 2023-09-30 11:20:11 +02:00
parent 844759e5b1
commit edd73619c3

View File

@ -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