Skip to content
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

거래완료 물품 후기보기 시, 내가 구매한 물품이 아닌데 후기 작성자 닉네임이 내 닉네임으로 뜨는 현상 #103

Open
hitkoo opened this issue Feb 8, 2023 · 0 comments

Comments

@hitkoo
Copy link

hitkoo commented Feb 8, 2023

username 관련 설계가 잘못된 것 같습니다.

                {buyerReview.id && (
                  <ReviewInfo
                    userId={buyer.id}
                    img={buyer.imgUrl ? buyer.imgUrl : defaultImg}
                    username={buyer.username}
                    type={'BUYER'}
                    location={buyer.location}
                    createdAt={buyerReview.createdAt}
                    content={buyerReview.content}
                  />
                )}

buyer라는 변수가 잠재적 buyer인 사용자 본인을 지칭하는 것 같은데 그걸 그대로 넘겨줘서
구매완료 상품일때 실 buyer가 아닌 여전히 사용자 본인이 넘어가네요

image

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

No branches or pull requests

1 participant