diff --git a/public/src/client/footer.js b/public/src/client/footer.js index 72d689c13a..7dcdade78b 100644 --- a/public/src/client/footer.js +++ b/public/src/client/footer.js @@ -42,7 +42,7 @@ define('forum/footer', ['notifications', 'chat', 'components', 'translator'], fu var unreadTopicCount = parseInt($('a[href="' + config.relative_path + '/unread"].navigation-link i').attr('data-content'), 10) + 1; updateUnreadTopicCount('/unread', unreadTopicCount); - var isNewTopic = post.isMain && parseInt(post.uid, 10) !== parseInt(app.user.uid); + var isNewTopic = post.isMain && parseInt(post.uid, 10) !== parseInt(app.user.uid, 10); if (isNewTopic) { var unreadNewTopicCount = parseInt($('a[href="' + config.relative_path + '/unread/new"].navigation-link i').attr('data-content'), 10) + 1; updateUnreadTopicCount('/unread/new', unreadNewTopicCount);