Skip to content

Commit

Permalink
remove: 초기 지정 값 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Taew00k committed Nov 29, 2024
1 parent ad140ae commit 5e14523
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/orderDetail/orderHistory/orderHistory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,18 @@ const OrderHistory = () => {
</div>
<div css={productContentStyle}>
<div css={productImageStyle}>
<img src={data.data.productImage} alt="상품 이미지" />
<img src={data?.data.productImage} alt="상품 이미지" />
<IcCameraBlack24 />
</div>
<div css={productInfoContainerStyle}>
<div css={productInfoStyle}>
<p css={productTitleStyle} onClick={handleProductTitleClick}>
{data.data.detail}
{data?.data.detail}
</p>
<p>Clear</p>
<div css={productPriceStyle}>
<p>{data.data.price.toLocaleString()}</p>
<p>x{data.data.quantity}</p>
<p>{data?.data.price.toLocaleString()}</p>
<p>x{data?.data.quantity}</p>
</div>
</div>
<p css={blueInfoStyle}>빠른 배송 · 무료 반품 · 배송 약속</p>
Expand All @@ -76,7 +76,7 @@ const OrderHistory = () => {
<div css={costRowStyle}>
<p css={costGrayLabelStyle}>합계</p>
<div css={costValueStyle}>
<p>{(data.data.price * data.data.quantity).toLocaleString()}</p>
<p>{(data?.data.price * data?.data.quantity).toLocaleString()}</p>
<IcArrowbottomGray12 />
</div>
</div>
Expand Down

0 comments on commit 5e14523

Please sign in to comment.