Skip to content

Commit

Permalink
fix: qr code 스캔 페이지 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobbymin committed Nov 9, 2024
1 parent cf3126d commit 7617743
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ export const QRCodeScannerPage = () => {
alert("QR Code가 정상적으로 스캔되었습니다.");

try {
// JSON 파싱
const parsedData = JSON.parse(result.text);

// studentId 추출
const studentId = parsedData.studentId;
setScannedStudentId(studentId);
} catch (error) {
Expand All @@ -33,9 +31,6 @@ export const QRCodeScannerPage = () => {
}
};

console.log(scannedData);
console.log(typeof scannedStudentId);

return (
<div className="p-4 space-y-4">
<h2 className="text-xl font-semibold">QR Code Scanner</h2>
Expand Down

0 comments on commit 7617743

Please sign in to comment.