diff --git a/SodaLive/Sources/Explorer/Profile/UserProfileView.swift b/SodaLive/Sources/Explorer/Profile/UserProfileView.swift index 4bf2c50..581d7f5 100644 --- a/SodaLive/Sources/Explorer/Profile/UserProfileView.swift +++ b/SodaLive/Sources/Explorer/Profile/UserProfileView.swift @@ -256,74 +256,76 @@ struct UserProfileView: View { .padding(.horizontal, 24) } - VStack(alignment: .leading, spacing: 14) { - HStack(spacing: 0) { - Text(I18n.MemberChannel.communityHeader) - .appFont(size: 26, weight: .bold) - .foregroundColor(Color.white) - .padding(.horizontal, 24) - - Spacer() - } - if viewModel.communityPostList.count > 0 { - ScrollView(.horizontal, showsIndicators: false) { - LazyHStack(spacing: 14) { - if UserDefaults.int(forKey: .userId) == creatorProfile.creator.creatorId { - CreatorCommunityWriteItemView() - .onTapGesture { - AppState.shared.setAppStep( - step: .creatorCommunityWrite( - onSuccess: creatorCommunityWriteSuccess - ) - ) - } - } - - ForEach(0.. 0 { + VStack(alignment: .leading, spacing: 14) { + HStack(spacing: 0) { + Text(I18n.MemberChannel.communityHeader) + .appFont(size: 26, weight: .bold) + .foregroundColor(Color.white) + .padding(.horizontal, 24) + + Spacer() } - } else { - if creatorProfile.creator.creatorId == UserDefaults.int(forKey: .userId) { - CreatorCommunityNoPostsItemView( - onSuccess: creatorCommunityWriteSuccess - ) - .padding(.horizontal, 24) + if viewModel.communityPostList.count > 0 { + ScrollView(.horizontal, showsIndicators: false) { + LazyHStack(spacing: 14) { + if UserDefaults.int(forKey: .userId) == creatorProfile.creator.creatorId { + CreatorCommunityWriteItemView() + .onTapGesture { + AppState.shared.setAppStep( + step: .creatorCommunityWrite( + onSuccess: creatorCommunityWriteSuccess + ) + ) + } + } + + ForEach(0.. 0 { + if creatorProfile.creator.creatorId == UserDefaults.int(forKey: .userId) || creatorProfile.userDonationRanking.count > 0 { UserProfileDonationView(userId: userId, donationRankingResponse: creatorProfile.userDonationRanking) }