Skip to content

Commit d8f5d1a

Browse files
committed
fix: typo
1 parent af255f4 commit d8f5d1a

3 files changed

Lines changed: 15 additions & 12 deletions

File tree

  • apps/ticket/src/app/(pages)
    • event/[eventId]
      • _clientBoundray/EventDetailClient
      • time-table/_clientBoundary/TimeTableClient
    • order/[orderId]/process

apps/ticket/src/app/(pages)/event/[eventId]/_clientBoundray/EventDetailClient/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ type Props = {
1919
};
2020

2121
export const EventDetailClient = ({ eventId }: Props) => {
22-
const { data: eventDetailData } = useEventDetailSuspenseQuery({ eventId });
22+
const { data: eventDetailData } = useEventDetailSuspenseQuery({
23+
eventId,
24+
options: { refetchOnWindowFocus: true },
25+
});
2326

2427
return (
2528
<>

apps/ticket/src/app/(pages)/event/[eventId]/time-table/_clientBoundary/TimeTableClient/index.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export const TimeTableClient = ({ eventId }: Props) => {
3535
refetchOnWindowFocus: true,
3636
},
3737
});
38+
3839
const [timetables, setTimetables] = useState(timetablesData);
3940

4041
const timeSlots = useMemo(
@@ -174,6 +175,14 @@ export const TimeTableClient = ({ eventId }: Props) => {
174175
<Flex direction="column" gap={16}>
175176
<Typography type="title20">{timetables.eventName}</Typography>
176177

178+
<Button
179+
className={cx("back_button")}
180+
variant="secondary"
181+
onClick={handleBackButtonClick}
182+
>
183+
{"< back"}
184+
</Button>
185+
177186
<Flex gap={8}>
178187
<Button
179188
variant="secondary"
@@ -188,14 +197,6 @@ export const TimeTableClient = ({ eventId }: Props) => {
188197
{"Sitemap"}
189198
</Button>
190199
</Flex>
191-
192-
<Button
193-
className={cx("back_button")}
194-
variant="secondary"
195-
onClick={handleBackButtonClick}
196-
>
197-
{"< back"}
198-
</Button>
199200
</Flex>
200201
<>
201202
{/* 즐겨찾기 버튼 영역 (media query 로 분기) */}

apps/ticket/src/app/(pages)/order/[orderId]/process/page.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ const PaymentProcessPage = () => {
3838

3939
if (isAxiosErrorResponse(error)) {
4040
alert(error.message);
41+
} else {
42+
alert("알 수 없는 이유로 결제에 실패했습니다. 다시 시도해주세요.");
4143
}
4244

4345
// 결제 실패 페이지로 라우팅
@@ -47,9 +49,6 @@ const PaymentProcessPage = () => {
4749

4850
return;
4951
}
50-
51-
alert("알 수 없는 이유로 결제에 실패했습니다. 다시 시도해주세요.");
52-
window.location.replace(`${window.location.origin}`);
5352
};
5453

5554
handlePaymentConfirm();

0 commit comments

Comments
 (0)