Skip to content

Commit cff9f93

Browse files
authored
Update packages/editor/src/components/collab-sidebar/comments.js
1 parent 19952ee commit cff9f93

File tree

1 file changed

+7
-8
lines changed
  • packages/editor/src/components/collab-sidebar

1 file changed

+7
-8
lines changed

packages/editor/src/components/collab-sidebar/comments.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -768,14 +768,13 @@ const CommentBoard = ( {
768768
: [];
769769

770770
let deleteConfirmMessage = __(
771-
'Are you sure you want to delete this note?'
772-
);
773-
774-
// When deleting a top level note, descendants will also be deleted.
775-
if ( thread.parent === 0 ) {
776-
deleteConfirmMessage +=
777-
' ' + __( "This will also delete all of this note's replies." );
778-
}
771+
const deleteConfirmMessage =
772+
// When deleting a top level note, descendants will also be deleted.
773+
thread.parent === 0
774+
? __(
775+
"Are you sure you want to delete this note? This will also delete all of this note's replies."
776+
)
777+
: __( 'Are you sure you want to delete this reply?' );
779778

780779
return (
781780
<VStack

0 commit comments

Comments
 (0)