From efd7d50a84b88202c7ca11e000af6dfa5b904244 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sun, 24 May 2026 19:12:40 -0600 Subject: [PATCH] fix build error --- src/services/QRScanner/CapacitorQRScanner.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/QRScanner/CapacitorQRScanner.ts b/src/services/QRScanner/CapacitorQRScanner.ts index 978a4a36..b9c09c44 100644 --- a/src/services/QRScanner/CapacitorQRScanner.ts +++ b/src/services/QRScanner/CapacitorQRScanner.ts @@ -123,10 +123,10 @@ export class CapacitorQRScanner implements QRScannerService { // Add listener for barcode scans const handle = await BarcodeScanner.addListener( - "barcodeScanned", + "barcodesScanned", (result) => { - if (this.scanListener && result.barcode?.rawValue) { - this.scanListener.onScan(result.barcode.rawValue); + if (this.scanListener && result.barcodes?.[0]?.rawValue) { + this.scanListener.onScan(result.barcodes[0].rawValue); } }, );