diff options
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/components/rhs_thread.jsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/webapp/components/rhs_thread.jsx b/webapp/components/rhs_thread.jsx index da958d9d5..1b4eb720f 100644 --- a/webapp/components/rhs_thread.jsx +++ b/webapp/components/rhs_thread.jsx @@ -324,8 +324,6 @@ export default class RhsThread extends React.Component { const postsArray = this.state.postsArray; const selected = this.state.selected; const profiles = this.state.profiles || {}; - const rootPostDay = Utils.getDateForUnixTicks(selected.create_at); - let previousPostDay = rootPostDay; if (postsArray == null || selected == null) { return ( @@ -333,6 +331,9 @@ export default class RhsThread extends React.Component { ); } + const rootPostDay = Utils.getDateForUnixTicks(selected.create_at); + let previousPostDay = rootPostDay; + let profile; if (UserStore.getCurrentId() === selected.user_id) { profile = this.props.currentUser; |