댓글 추가 불가능 한 포스트의 경우 댓글 영역이 보이지 않도록 수정

This commit is contained in:
Yu Sung 2023-12-21 23:58:44 +09:00
parent acdacbfb7b
commit 85044d901f
1 changed files with 10 additions and 8 deletions

View File

@ -97,14 +97,16 @@ struct CreatorCommunityAllItemView: View {
}
.frame(maxWidth: .infinity, alignment: .leading)
CreatorCommunityCommentView(
commentCount: item.commentCount,
commentItem: item.firstComment,
onClickWriteComment: onClickWriteComment
)
.onTapGesture {
if item.commentCount > 0 {
onClickComment()
if item.isCommentAvailable {
CreatorCommunityCommentView(
commentCount: item.commentCount,
commentItem: item.firstComment,
onClickWriteComment: onClickWriteComment
)
.onTapGesture {
if item.commentCount > 0 {
onClickComment()
}
}
}
}