File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed
Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import Button from "../../../../design-system/ui/Button";
66const QrScannerComponent = ( ) => {
77 const videoRef = useRef < HTMLVideoElement > ( null ) ;
88 const [ isScanning , setIsScanning ] = useState ( false ) ;
9- const [ scanResult , setScanResult ] = useState < string | null > ( null ) ;
109 const qrScannerRef = useRef < QrScanner | null > ( null ) ;
1110
1211 const { mutate : validateQr } = useTicketQrCodeValidate ( ) ;
@@ -18,7 +17,6 @@ const QrScannerComponent = () => {
1817 videoRef . current ,
1918 ( decoded ) => {
2019 const data = decoded . data ;
21- setScanResult ( data ) ;
2220 setIsScanning ( false ) ;
2321 scanner . stop ( ) ;
2422 checkInApiCall ( data ) ;
@@ -45,7 +43,6 @@ const QrScannerComponent = () => {
4543 await navigator . mediaDevices . getUserMedia ( { video : true } ) ;
4644 qrScannerRef . current ?. start ( ) ;
4745 setIsScanning ( true ) ;
48- setScanResult ( null ) ;
4946 } catch ( e ) {
5047 alert (
5148 "카메라 접근이 차단되어 있어 스캔할 수 없습니다.\n시스템 설정 또는 브라우저 설정에서 권한을 허용해 주세요."
You can’t perform that action at this time.
0 commit comments