Skip to content

Commit

Permalink
fix: 결제 상세에 체크 박스가 적용되지 않는 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
xodms0309 committed Jun 5, 2023
1 parent 87fbe14 commit 520e45c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Cart/PaymentDetail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const PaymentDetail = () => {
if (!data) return 0;

return data.cartItemsPrice.reduce((acc, cur) => {
if (!checkedItems.includes(cur.cartItemId)) return acc;
const quantity =
cartList.find((item) => item.id === cur.cartItemId)?.quantity ?? 0;
return acc + cur.originalPrice * quantity;
Expand Down

0 comments on commit 520e45c

Please sign in to comment.