Skip to content

Commit

Permalink
fix(Scanner): allow Ullern IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianAndersen committed Jun 5, 2024
1 parent d60d957 commit 6ad855f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/matches/Scanner/ScannerModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const ScannerModal = ({
// eslint-disable-next-line no-unused-vars
handleSubmit: (scannedText: string) => Promise<boolean>;
}) => {
console.log("scannermodal");
return (
<Modal open={open}>
<Container
Expand All @@ -34,7 +35,7 @@ const ScannerModal = ({
<Box sx={{ position: "absolute", width: "100%" }}>
<Scanner
constraints={{ facingMode: "environment" }}
formats={["qr_code", "ean_8", "ean_13"]}
formats={["qr_code", "code_128", "ean_8", "ean_13"]}
components={{ torch: true }}
onScan={(detectedCodes) => {
for (const code of detectedCodes) {
Expand Down

0 comments on commit 6ad855f

Please sign in to comment.