Skip to content

Commit 937d270

Browse files
committed
refac: 에러 타입 개선
1 parent cdfed22 commit 937d270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/ticket/hooks/useOrderHook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const useTicketQrCodeValidate = () => {
5454
onSuccess: () => {
5555
alert('체크인 성공!');
5656
},
57-
onError: (error: any) => {
57+
onError: (error: { code?: string }) => {
5858
const errorCode = error?.code;
5959
if (errorCode === 'QR_CODE4001') {
6060
alert('이미 사용된 QR 코드입니다.');

0 commit comments

Comments
 (0)