Skip to content

Commit bd34852

Browse files
committed
2 parents 41e6441 + c114571 commit bd34852

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

  • apps/ticket/src
    • app/(pages)/staff/ticket-authorization/_clientBoundary/TicketAuthorizationClient
    • shared
      • clientBoundary/ErrorBoundary/GlobalErrorBoundary
      • components/AuthErrorFallback

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ export const TicketAuthorizationClient = () => {
166166
#qr-reader video {
167167
width: 100% !important;
168168
height: auto !important;
169-
transform: scaleX(-1);
170169
}
171170
#qr-reader__dashboard {
172171
display: none !important;
@@ -277,8 +276,7 @@ export const TicketAuthorizationClient = () => {
277276
});
278277
}
279278
};
280-
// eslint-disable-next-line react-hooks/exhaustive-deps
281-
}, []);
279+
}, [lastScannedCode]);
282280

283281
// 검증 결과 처리
284282
useEffect(() => {

apps/ticket/src/shared/clientBoundary/ErrorBoundary/GlobalErrorBoundary/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { GlobalErrorPage } from "./components/GlobalErrorPage";
1212

1313
export const GlobalErrorBoundary = ({ children }: { children: React.ReactNode }) => (
1414
<ErrorBoundary
15-
handlers={[authErrorHandler, requiredLoginHandler, networkErrorHandler, globalErrorHandler]}
15+
handlers={[requiredLoginHandler, authErrorHandler, networkErrorHandler, globalErrorHandler]}
1616
>
1717
<Suspense>{children}</Suspense>
1818
</ErrorBoundary>

apps/ticket/src/shared/components/AuthErrorFallback/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ export const AuthErrorFallback = () => {
2323
window.location.reload();
2424
} else {
2525
// 재발급 실패 → 로그인
26+
alert("인증 시간이 만료되었습니다. 다시 로그인해주세요.");
2627
window.location.href = "/login";
2728
}
2829
} catch (error) {
2930
console.error("토큰 재발급 실패:", error);
30-
alert("인증 오류가 발생했습니다. 다시 로그인해주세요.");
31+
alert("인증 시간이 만료되었습니다. 다시 로그인해주세요.");
3132
window.location.href = "/login";
3233
}
3334
};

0 commit comments

Comments
 (0)