Skip to content

Commit

Permalink
Comment Content: Show block name as placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
DAreRodz committed Oct 19, 2021
1 parent 15bb5a6 commit 1fa7d39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/block-library/src/post-comment-content/edit.js
Expand Up @@ -57,11 +57,11 @@ export default function Edit( {
/>
</BlockControls>
<div { ...blockProps }>
{ ! commentId ? (
<p>{ __( 'The content of the comment.' ) }</p>
{ ! commentId || ! content ? (
<p>{ __( 'Post Comment Content' ) }</p>
) : (
<Disabled>
<RawHTML key="html">{ content?.rendered }</RawHTML>
<RawHTML key="html">{ content.rendered }</RawHTML>
</Disabled>
) }
</div>
Expand Down

0 comments on commit 1fa7d39

Please sign in to comment.