Skip to content

Commit

Permalink
Remove unnecessary change
Browse files Browse the repository at this point in the history
  • Loading branch information
franzliedke committed Sep 18, 2020
1 parent 9ba03e9 commit b59d383
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion js/src/forum/components/DiscussionPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ export default class DiscussionPage extends Page {
items.add(
'scrubber',
PostStreamScrubber.component({
discussion: this.discussion,
stream: this.stream,
className: 'App-titleControl',
}),
Expand Down
2 changes: 1 addition & 1 deletion js/src/forum/components/PostStreamScrubber.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class PostStreamScrubber extends Component {
count: <span className="Scrubber-count">{formatNumber(count)}</span>,
});

const unreadCount = this.attrs.discussion.unreadCount();
const unreadCount = this.stream.discussion.unreadCount();
const unreadPercent = count ? Math.min(count - this.stream.index, unreadCount) / count : 0;

function styleUnread(vnode) {
Expand Down

0 comments on commit b59d383

Please sign in to comment.