Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

Add failure sound to when an attendee code was already scanned that session

Graham Blairfdcbe5663e71
diff --git a/frontend/src/components/common/AttendeeCheckInTable/QrScanner.tsx b/frontend/src/components/common/AttendeeCheckInTable/QrScanner.tsx
index cda6c8de8..88080059a 100644
--- a/frontend/src/components/common/AttendeeCheckInTable/QrScanner.tsx
+++ b/frontend/src/components/common/AttendeeCheckInTable/QrScanner.tsx
@@ -81,6 +81,9 @@ export const QRScannerComponent = (props: QRScannerComponentProps) => {
setInterval(function() {
setIsScanFailed(false);
}, 500);
+ if (isSoundOn && scanSuccessAudioRef.current) {
+ scanSuccessAudioRef.current.play();
+ }
return;
}