Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

ProductBarcode: fix error on pages/Scanner.vue when using a barcode

Crumb Owl7c56bfb4ab72
diff --git a/frontend/components/App/ScannerModal.vue b/frontend/components/App/ScannerModal.vue
index 83c23b74..1f4e049c 100644
--- a/frontend/components/App/ScannerModal.vue
+++ b/frontend/components/App/ScannerModal.vue
@@ -201,10 +201,12 @@
console.info("Barcode detected");
detectedBarcode.value = result.getText();
break;
+
+ default:
+ handleError(err);
}
loading.value = false;
- handleError(err);
}
}
if (err && !(err instanceof NotFoundException)) {