Skip to content

Commit

Permalink
fix: totalPaymentAmount 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
pepperdad committed Jul 19, 2024
1 parent 2944bbe commit 9594da2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/book/Book.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const Book = () => {
data?.scheduleList![selectedValue! - data?.scheduleList?.[0].scheduleId].scheduleId,
scheduleNumber: getScheduleNumberById(data?.scheduleList!, selectedValue!),
purchaseTicketCount: round,
totalPaymentAmount: data?.ticketPrice ?? 0 * round,
totalPaymentAmount: (data?.ticketPrice ?? 0) * round,
} as GuestBookingRequest;

if (!isLogin) {
Expand Down Expand Up @@ -170,8 +170,12 @@ const Book = () => {
bookerPhoneNumber: bookerInfo.bookerPhoneNumber,
} as GuestBookingRequest;

console.log(formData);

const res = await memberBook(formData);

console.log(res);

navigate("/book/complete", {
state: {
id: performanceId,
Expand Down

0 comments on commit 9594da2

Please sign in to comment.