diff --git a/web/react/components/post_info.jsx b/web/react/components/post_info.jsx index dd2b154a0a..0b8b07d8c5 100644 --- a/web/react/components/post_info.jsx +++ b/web/react/components/post_info.jsx @@ -42,47 +42,6 @@ export default class PostInfo extends React.Component { dataComments = this.props.commentCount; } - if (isOwner) { - dropdownContents.push( -
  • - - {'Edit'} - -
  • - ); - } - - if (isOwner || isAdmin) { - dropdownContents.push( -
  • - EventHelpers.showDeletePostModal(post, dataComments)} - > - {'Delete'} - -
  • - ); - } - if (this.props.allowReply === 'true') { dropdownContents.push(
  • ); + if (isOwner || isAdmin) { + dropdownContents.push( +
  • + EventHelpers.showDeletePostModal(post, dataComments)} + > + {'Delete'} + +
  • + ); + } + + if (isOwner) { + dropdownContents.push( +
  • + + {'Edit'} + +
  • + ); + } + if (dropdownContents.length === 0) { return ''; }