Skip to content

Commit

Permalink
fix: camera keeps resetting
Browse files Browse the repository at this point in the history
  • Loading branch information
gmat224 committed Dec 13, 2024
1 parent e2f7305 commit c95f677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/screens/AttendanceScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c95f677

Please sign in to comment.