improve product search and barcode scanning
Android Release Build / build-android (push) Failing after 7m42s

This commit is contained in:
2026-11-20 00:51:47 +01:00
parent 460ca60914
commit ab963d8421
8 changed files with 281 additions and 134 deletions
+2 -2
View File
@@ -220,14 +220,14 @@ export default function App() {
}
}
async function scanProductByBarcode(barcode) {
async function scanProductByBarcode(barcode, { openWhenFound = true } = {}) {
const result = await lookupProductByBarcode(
barcode,
productCache,
preferences.offlineModeEnabled
);
if (result.status === 'found') {
if (result.status === 'found' && openWhenFound) {
openProduct(result.product);
}