Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MU-Software
Copy link
Member

주요 변경 사항

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

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