From 4ef844298fdb0d6fb41eac760f8ac00cee82b3bc Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Tue, 1 Aug 2017 09:04:28 -0400 Subject: Show flagged posts consistently throughout the UI (#7063) --- webapp/components/rhs_thread/rhs_thread.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webapp/components/rhs_thread') diff --git a/webapp/components/rhs_thread/rhs_thread.jsx b/webapp/components/rhs_thread/rhs_thread.jsx index 58325e8cc..73e426207 100644 --- a/webapp/components/rhs_thread/rhs_thread.jsx +++ b/webapp/components/rhs_thread/rhs_thread.jsx @@ -343,7 +343,7 @@ export default class RhsThread extends React.Component { let isRootFlagged = false; if (this.state.flaggedPosts) { - isRootFlagged = this.state.flaggedPosts.get(selected.id) === 'true'; + isRootFlagged = this.state.flaggedPosts.get(selected.id) != null; } let rootStatus = 'offline'; @@ -367,7 +367,7 @@ export default class RhsThread extends React.Component { let isFlagged = false; if (this.state.flaggedPosts) { - isFlagged = this.state.flaggedPosts.get(comPost.id) === 'true'; + isFlagged = this.state.flaggedPosts.get(comPost.id) != null; } let status = 'offline'; -- cgit v1.2.3-1-g7c22