diff options
author | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-08-10 16:51:59 -0700 |
---|---|---|
committer | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-08-12 11:19:42 -0700 |
commit | e02883baf2fd2a0cfc21bd557bc0ecc69afd707c (patch) | |
tree | c874014e674764172e6caf73a34886ce7a020db4 /web/react/components/post_right.jsx | |
parent | 23a331f933af834ed1a26806f087e61ca6ddd93a (diff) | |
download | chat-e02883baf2fd2a0cfc21bd557bc0ecc69afd707c.tar.gz chat-e02883baf2fd2a0cfc21bd557bc0ecc69afd707c.tar.bz2 chat-e02883baf2fd2a0cfc21bd557bc0ecc69afd707c.zip |
Cosmetic refactoring of post_body.jsx
Diffstat (limited to 'web/react/components/post_right.jsx')
-rw-r--r-- | web/react/components/post_right.jsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/web/react/components/post_right.jsx b/web/react/components/post_right.jsx index 10a9400f5..19e4cf67a 100644 --- a/web/react/components/post_right.jsx +++ b/web/react/components/post_right.jsx @@ -286,8 +286,9 @@ module.exports = React.createClass({ } var rootPostKey = root_post.id - if (root_post.lastEditDate != undefined) + if (root_post.lastEditDate) { rootPostKey += root_post.lastEditDate; + } var posts_array = []; @@ -295,8 +296,9 @@ module.exports = React.createClass({ var cpost = post_list.posts[postId]; if (cpost.root_id == root_post.id) { var cpostKey = cpost.id - if (cpost.lastEditDate != undefined) + if (cpost.lastEditDate) { cpostKey += cpost.lastEditDate; + } cpost.cpostKey = cpostKey; posts_array.push(cpost); |