fix comments #7398

Merged
jessopb merged 1 commit from fix-comments into master 2022-01-04 16:01:01 +01:00
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.", "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", "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.", "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--" "--end--": "--end--"
} }

View file

@ -32,7 +32,7 @@ const MENTION_DEBOUNCE_MS = 100;
type Props = { type Props = {
uri: string, uri: string,
claim: StreamClaim, claim: StreamClaim,
channels: ?Array<ChannelClaim>, hasChannels: boolean,
isNested: boolean, isNested: boolean,
isFetchingChannels: boolean, isFetchingChannels: boolean,
parentId: string, parentId: string,
@ -60,7 +60,7 @@ export function CommentCreate(props: Props) {
const { const {
uri, uri,
claim, claim,
channels, hasChannels,
isNested, isNested,
isFetchingChannels, isFetchingChannels,
isReply, isReply,
@ -123,7 +123,6 @@ export function CommentCreate(props: Props) {
const claimId = claim && claim.claim_id; const claimId = claim && claim.claim_id;
const signingChannel = (claim && claim.signing_channel) || claim; const signingChannel = (claim && claim.signing_channel) || claim;
const channelUri = signingChannel && signingChannel.permanent_url; const channelUri = signingChannel && signingChannel.permanent_url;
const hasChannels = channels && channels.length;
const charCount = commentValue ? commentValue.length : 0; const charCount = commentValue ? commentValue.length : 0;
const disabled = deletedComment || isSubmitting || isFetchingChannels || !commentValue.length || pauseQuickSend; const disabled = deletedComment || isSubmitting || isFetchingChannels || !commentValue.length || pauseQuickSend;
const channelId = getChannelIdFromClaim(claim); const channelId = getChannelIdFromClaim(claim);