From a5d5d97f936aa4ea77bd0d3ac5fc2eea33fa2451 Mon Sep 17 00:00:00 2001 From: minseokiim Date: Sun, 28 Jan 2024 18:08:46 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20fix:=20=EB=A7=88=EC=9D=B4?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=80=20=EC=83=81=EC=84=B8=20=EA=B0=80?= =?UTF-8?q?=EA=B2=A9=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/order/complete/detail/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/order/complete/detail/index.tsx b/components/order/complete/detail/index.tsx index 21de46fb..87a99d48 100644 --- a/components/order/complete/detail/index.tsx +++ b/components/order/complete/detail/index.tsx @@ -7,7 +7,7 @@ import { useQueryGetPurchaseDetail } from '@/api/mypage/query'; const OrderDetail = ({ id }: { id: number }) => { const { data } = useQueryGetPurchaseDetail(id); - + console.log(data); const commission = data?.sellPrice.price * 0.05; const bookingDetails = { bookingHolder: { @@ -32,7 +32,7 @@ const OrderDetail = ({ id }: { id: number }) => { transportation={data?.accommodation.transportation} checkIn={data?.accommodation.checkIn} checkOut={data?.accommodation.checkOut} - sellPrice={data?.sellPrice.sellPrice} + sellPrice={data?.sellPrice.price} /> Date: Sun, 28 Jan 2024 20:18:34 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=90=9B=20fix:=20=EB=A7=88=EC=9D=B4?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=80=20=EC=83=81=EC=84=B8=20=EA=B0=80?= =?UTF-8?q?=EA=B2=A9=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/order/complete/detail/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/order/complete/detail/index.tsx b/components/order/complete/detail/index.tsx index 87a99d48..44dafcf2 100644 --- a/components/order/complete/detail/index.tsx +++ b/components/order/complete/detail/index.tsx @@ -8,7 +8,7 @@ import { useQueryGetPurchaseDetail } from '@/api/mypage/query'; const OrderDetail = ({ id }: { id: number }) => { const { data } = useQueryGetPurchaseDetail(id); console.log(data); - const commission = data?.sellPrice.price * 0.05; + const commission = data?.sellPrice.sellPrice * 0.05; const bookingDetails = { bookingHolder: { name: data?.buyer.buyerName, @@ -32,14 +32,14 @@ const OrderDetail = ({ id }: { id: number }) => { transportation={data?.accommodation.transportation} checkIn={data?.accommodation.checkIn} checkOut={data?.accommodation.checkOut} - sellPrice={data?.sellPrice.price} + sellPrice={data?.sellPrice.sellPrice} />