From c95f677328f0addd6c415d5fa560fa286cc3f8b5 Mon Sep 17 00:00:00 2001 From: Guryash Date: Fri, 13 Dec 2024 23:49:00 +1300 Subject: [PATCH] fix: camera keeps resetting --- web/src/screens/AttendanceScreen.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/screens/AttendanceScreen.tsx b/web/src/screens/AttendanceScreen.tsx index 9361e89..fce1711 100644 --- a/web/src/screens/AttendanceScreen.tsx +++ b/web/src/screens/AttendanceScreen.tsx @@ -91,7 +91,7 @@ export default function AttendanceScreen({ navbar }: { navbar: JSX.Element }) { if (cameraDevices.length > 0) { setCameraId(cameraDevices[0].deviceId); } - }, [cameraId]); + }, []); function onQRcodeScanned(decodedQRCode: IDetectedBarcode[]) { if (scannedQRCode != decodedQRCode[0].rawValue) {