Skip to content

Commit

Permalink
Merge pull request #314 from catchroom/feature/#299
Browse files Browse the repository at this point in the history
🐛 fix: 마이페이지 상세 가격 변경
  • Loading branch information
minseokiim authored Jan 28, 2024
2 parents d26b95d + 34b1483 commit fb037d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/order/complete/detail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { useQueryGetPurchaseDetail } from '@/api/mypage/query';

const OrderDetail = ({ id }: { id: number }) => {
const { data } = useQueryGetPurchaseDetail(id);

const commission = data?.sellPrice.price * 0.05;
console.log(data);
const commission = data?.sellPrice.sellPrice * 0.05;
const bookingDetails = {
bookingHolder: {
name: data?.buyer.buyerName,
Expand Down Expand Up @@ -37,9 +37,9 @@ const OrderDetail = ({ id }: { id: number }) => {
<ReservationDetail
bookingHolder={bookingDetails.bookingHolder}
guest={bookingDetails.guest}
totalPrice={data?.sellPrice.price + commission}
totalPrice={data?.sellPrice.sellPrice + commission}
paymentMethod={data?.paymentMethod}
sellPrice={data?.sellPrice.price}
sellPrice={data?.sellPrice.sellPrice}
commission={commission}
nikName={data?.seller.nickName}
/>
Expand Down

0 comments on commit fb037d8

Please sign in to comment.