diff --git a/src/elements/QRScanner.tsx b/src/elements/QRScanner.tsx index 5170ba4..52c1e5e 100644 --- a/src/elements/QRScanner.tsx +++ b/src/elements/QRScanner.tsx @@ -15,7 +15,6 @@ export type QRScannerProps = { export class QRScanner extends Component { videoElement = createRef(); - stream: MediaStream; qrScanner: QrScanner; componentDidMount(): void { @@ -27,7 +26,6 @@ export class QRScanner extends Component { audio: false, }) .then((stream) => { - this.stream = stream; this.videoElement.current.srcObject = stream; const lastSeenValue = ""; const qrScanner = new QrScanner(this.videoElement.current, (value) => {