Skip to content

fix: 장바구니 컴포넌트가 렌더링되지 않을 수 있는 문제 수정#4

Merged
MU-Software merged 1 commit intomainfrom
fix/shop-cart-fail-on-not-initialized-cart
May 15, 2025
Merged

fix: 장바구니 컴포넌트가 렌더링되지 않을 수 있는 문제 수정#4
MU-Software merged 1 commit intomainfrom
fix/shop-cart-fail-on-not-initialized-cart

Conversation

@MU-Software
Copy link
Member

주요 변경 사항

  • 고객이 상품을 한번도 담지 않은 경우, 백엔드에서 장바구니(Cart)가 아직 초기화되지 않았을 수 있습니다.
    이때 백엔드에서 받아온 장바구니 정보는 빈 object라서 data.products.length에 접근할 수 없게 되어 에러가 발생하고, ErrorBoundary에 걸리게 됩니다.
  • 이를 수정합니다.

@MU-Software MU-Software merged commit b5e8690 into main May 15, 2025
@MU-Software MU-Software deleted the fix/shop-cart-fail-on-not-initialized-cart branch May 16, 2025 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant