fix comments (#7398)

This commit is contained in:
jessopb 2022-01-04 10:01:01 -05:00 committed by GitHub
parent e704f87557
commit cedfd3e32c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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--"
}

View file

@ -32,7 +32,7 @@ const MENTION_DEBOUNCE_MS = 100;
type Props = {
uri: string,
claim: StreamClaim,
channels: ?Array<ChannelClaim>,
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);