From ec51dc05cc56780a036d28f49d37da9a5af5baae Mon Sep 17 00:00:00 2001 From: Christopher Gurnee Date: Mon, 7 Feb 2022 20:21:44 -0500 Subject: [PATCH] Don't wrongly highlight '[deleted]' as post author --- src/pages/thread/Comment.js | 2 +- src/pages/thread/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/thread/Comment.js b/src/pages/thread/Comment.js index 7967bc7..49d5371 100644 --- a/src/pages/thread/Comment.js +++ b/src/pages/thread/Comment.js @@ -46,7 +46,7 @@ const Comment = (props) => { {props.author} {props.deleted && ' (deleted by user)'} diff --git a/src/pages/thread/index.js b/src/pages/thread/index.js index e3c753c..36aa190 100644 --- a/src/pages/thread/index.js +++ b/src/pages/thread/index.js @@ -192,7 +192,7 @@ class Thread extends React.Component { comments={this.state.pushshiftCommentLookup} removed={this.state.removed} deleted={this.state.deleted} - postAuthor={author} + postAuthor={isDeleted(author) ? null : author} /> }