From 9fe9e31a99d580cbbc3e2e6792afd58de847bff1 Mon Sep 17 00:00:00 2001 From: zeppi Date: Tue, 4 Jan 2022 10:00:12 -0500 Subject: [PATCH] fix comments --- static/app-strings.json | 1 + ui/component/commentCreate/view.jsx | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/static/app-strings.json b/static/app-strings.json index 0d2718541..99b65f1ec 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -2238,5 +2238,6 @@ "Failed to view lbry://@Destiny#6/destiny-crashes-conservative-panel-w#a, please try again. If this problem persists, visit https://lbry.com/faq/support for support.": "Failed to view lbry://@Destiny#6/destiny-crashes-conservative-panel-w#a, please try again. If this problem persists, visit https://lbry.com/faq/support for support.", "A channel is required to repost on LBRY": "A channel is required to repost on LBRY", "Failed to view lbry://@gatogalactico#9/gato-galactico-e-as-estrelas-ninja-dos#1, please try again. If this problem persists, visit https://lbry.com/faq/support for support.": "Failed to view lbry://@gatogalactico#9/gato-galactico-e-as-estrelas-ninja-dos#1, please try again. If this problem persists, visit https://lbry.com/faq/support for support.", + "Admin": "Admin", "--end--": "--end--" } diff --git a/ui/component/commentCreate/view.jsx b/ui/component/commentCreate/view.jsx index 2ef7f36ad..07a8a6a5c 100644 --- a/ui/component/commentCreate/view.jsx +++ b/ui/component/commentCreate/view.jsx @@ -32,7 +32,7 @@ const MENTION_DEBOUNCE_MS = 100; type Props = { uri: string, claim: StreamClaim, - channels: ?Array, + hasChannels: boolean, isNested: boolean, isFetchingChannels: boolean, parentId: string, @@ -60,7 +60,7 @@ export function CommentCreate(props: Props) { const { uri, claim, - channels, + hasChannels, isNested, isFetchingChannels, isReply, @@ -123,7 +123,6 @@ export function CommentCreate(props: Props) { const claimId = claim && claim.claim_id; const signingChannel = (claim && claim.signing_channel) || claim; const channelUri = signingChannel && signingChannel.permanent_url; - const hasChannels = channels && channels.length; const charCount = commentValue ? commentValue.length : 0; const disabled = deletedComment || isSubmitting || isFetchingChannels || !commentValue.length || pauseQuickSend; const channelId = getChannelIdFromClaim(claim); -- 2.45.2