크리에이터 채널

- 후원랭킹이 없어도 내 채널에서는 후원랭킹 영역이 보이도록 수정
- 채널 주인이 아닌 다른 유저는 커뮤니티 게시물이 없으면 커뮤니티 영역이 보이지 않도록 수정
This commit is contained in:
Yu Sung
2026-02-04 11:26:04 +09:00
parent 13f8d924c0
commit c0288b5eb8

View File

@@ -256,6 +256,7 @@ struct UserProfileView: View {
.padding(.horizontal, 24) .padding(.horizontal, 24)
} }
if creatorProfile.creator.creatorId == UserDefaults.int(forKey: .userId) || viewModel.communityPostList.count > 0 {
VStack(alignment: .leading, spacing: 14) { VStack(alignment: .leading, spacing: 14) {
HStack(spacing: 0) { HStack(spacing: 0) {
Text(I18n.MemberChannel.communityHeader) Text(I18n.MemberChannel.communityHeader)
@@ -323,6 +324,7 @@ struct UserProfileView: View {
} }
} }
} }
}
if !creatorProfile.seriesList.isEmpty { if !creatorProfile.seriesList.isEmpty {
UserProfileSeriesView( UserProfileSeriesView(
@@ -332,7 +334,7 @@ struct UserProfileView: View {
) )
} }
if creatorProfile.userDonationRanking.count > 0 { if creatorProfile.creator.creatorId == UserDefaults.int(forKey: .userId) || creatorProfile.userDonationRanking.count > 0 {
UserProfileDonationView(userId: userId, donationRankingResponse: creatorProfile.userDonationRanking) UserProfileDonationView(userId: userId, donationRankingResponse: creatorProfile.userDonationRanking)
} }