Skip to content

Commit ff52209

Browse files
committed
refact: 기간 지난 티켓 구매 방지 문구 수정
1 parent 8ce5bf4 commit ff52209

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/features/ticket/hooks/useOrderHook.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ export const useOrderTicket = () => {
3737
return useMutation({
3838
mutationFn: (data: OrderTicketRequest) => orderTickets(data),
3939
onError: (error: any) => {
40-
const errorCode = error?.response?.data?.code;
40+
const errorCode = error?.code;
4141
if (errorCode === 'TICKET4004') {
42-
alert('해당 티켓은 구매 가능한 날짜가 아닙니다.');
42+
alert('해당 티켓은 현재 판매 기간이 아닙니다.');
4343
} else {
4444
alert('티켓 구매 중 오류가 발생했습니다.');
4545
}

0 commit comments

Comments
 (0)