Skip to content

Commit 38182d6

Browse files
committed
fix: add horizontal flip transformation to QR reader video and update effect dependencies in TicketAuthorizationClient
1 parent 0c65055 commit 38182d6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • apps/ticket/src/app/(pages)/staff/ticket-authorization/_clientBoundary/TicketAuthorizationClient

apps/ticket/src/app/(pages)/staff/ticket-authorization/_clientBoundary/TicketAuthorizationClient/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ export const TicketAuthorizationClient = () => {
166166
#qr-reader video {
167167
width: 100% !important;
168168
height: auto !important;
169+
transform: scaleX(-1);
169170
}
170171
#qr-reader__dashboard {
171172
display: none !important;
@@ -276,11 +277,12 @@ export const TicketAuthorizationClient = () => {
276277
});
277278
}
278279
};
279-
// eslint-disable-next-line react-hooks/exhaustive-deps
280-
}, []);
280+
}, [lastScannedCode]);
281281

282282
// 검증 결과 처리
283283
useEffect(() => {
284+
alert("scannedTicketCode 변경됨: " + scannedTicketCode + scanningRef.current);
285+
284286
if (!scannedTicketCode || !scanningRef.current) return;
285287

286288
const verifyTicket = async () => {

0 commit comments

Comments
 (0)