summaryrefslogtreecommitdiffstats
path: root/webapp/components/rhs_thread
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/rhs_thread')
-rw-r--r--webapp/components/rhs_thread/rhs_thread.jsx4
1 files changed, 2 insertions, 2 deletions
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';