File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments