mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-22 23:28:56 +03:00
Merge pull request #2219 from ecency/sa/comment-delete-bug
Fix comment delete failure bug
This commit is contained in:
commit
9480df4104
@ -233,7 +233,7 @@ const CommentView = ({
|
||||
onPress={() => handleOnEditPress && handleOnEditPress(comment)}
|
||||
iconType="MaterialIcons"
|
||||
/>
|
||||
{!childCount && !activeVotes.length && (
|
||||
{!childCount && !activeVotes.length && isCommentDeletable && (
|
||||
<Fragment>
|
||||
<IconButton
|
||||
size={20}
|
||||
@ -283,7 +283,8 @@ const CommentView = ({
|
||||
}
|
||||
|
||||
const customContainerStyle = commentNumber > 2 ? {marginLeft: 44}:null
|
||||
|
||||
const isCommentDeletable = comment && !(comment.children > 0 || comment.net_rshares > 0 || comment.is_paidout);
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
<View style={{...styles.commentContainer, ...customContainerStyle}}>
|
||||
|
Loading…
Reference in New Issue
Block a user