We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ce5bf4 commit ff52209Copy full SHA for ff52209
src/features/ticket/hooks/useOrderHook.ts
@@ -37,9 +37,9 @@ export const useOrderTicket = () => {
37
return useMutation({
38
mutationFn: (data: OrderTicketRequest) => orderTickets(data),
39
onError: (error: any) => {
40
- const errorCode = error?.response?.data?.code;
+ const errorCode = error?.code;
41
if (errorCode === 'TICKET4004') {
42
- alert('해당 티켓은 구매 가능한 날짜가 아닙니다.');
+ alert('해당 티켓은 현재 판매 기간이 아닙니다.');
43
} else {
44
alert('티켓 구매 중 오류가 발생했습니다.');
45
}
0 commit comments