From 85044d901f124abc0a0c78d4b2a9874aee5aab00 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Thu, 21 Dec 2023 23:58:44 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8C=93=EA=B8=80=20=EC=B6=94=EA=B0=80=20?= =?UTF-8?q?=EB=B6=88=EA=B0=80=EB=8A=A5=20=ED=95=9C=20=ED=8F=AC=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=EC=9D=98=20=EA=B2=BD=EC=9A=B0=20=EB=8C=93=EA=B8=80=20?= =?UTF-8?q?=EC=98=81=EC=97=AD=EC=9D=B4=20=EB=B3=B4=EC=9D=B4=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../All/CreatorCommunityAllItemView.swift | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllItemView.swift b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllItemView.swift index d5d25ed..cd68b96 100644 --- a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllItemView.swift +++ b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllItemView.swift @@ -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() + } } } }