FIX: Anonymous users shouldn't see the link to new in the footer

This commit is contained in:
Robin Ward 2018-02-26 13:46:24 -05:00
parent 3be0294465
commit f8856f3d7a

View File

@ -31,7 +31,7 @@ export default Ember.Component.extend({
}
const unreadTopics = this.topicTrackingState.countUnread();
const newTopics = this.topicTrackingState.countNew();
const newTopics = this.currentUser ? this.topicTrackingState.countNew() : 0;
if (newTopics + unreadTopics > 0) {
const hasBoth = unreadTopics > 0 && newTopics > 0;