Fix discussion list not rendering for guests

This commit is contained in:
Toby Zerner 2015-07-23 14:31:07 +09:30
parent bc4a000078
commit 4fa18e248b

View File

@ -35,7 +35,10 @@ export default class DiscussionListItem extends Component {
*/
this.subtree = new SubtreeRetainer(
() => this.props.discussion.freshness,
() => app.session.user && app.session.user.readTime().getTime(),
() => {
const time = app.session.user && app.session.user.readTime();
return time && time.getTime();
},
() => this.active()
);
}