Skip to content

Commit 543c905

Browse files
committed
Lenght of empty list is 0 in JS
1 parent 58e4bec commit 543c905

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Utilities/QRCamera.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ async function detectedQR([result]) {
7979
8080
function switchCamera() {
8181
destroyed.value = true
82-
if (cameraStore.cameraDevices.length < 0) {
82+
if (cameraStore.cameraDevices.length == 0) {
8383
console.log("No cameras found in cameraStore, re-enumerationg them")
8484
updateAvailableCamera()
8585
}

0 commit comments

Comments
 (0)