diff --git a/js/src/forum/components/PostStream.js b/js/src/forum/components/PostStream.js
index 2db6d0d23..93beb7469 100644
--- a/js/src/forum/components/PostStream.js
+++ b/js/src/forum/components/PostStream.js
@@ -45,7 +45,7 @@ export default class PostStream extends Component {
let lastTime;
this.state.visibleEnd = this.state.sanitizeIndex(this.state.visibleEnd);
- this.state.viewingEnd = this.state.visibleEnd === this.state.count();
+ const viewingEnd = this.state.viewingEnd();
const posts = this.state.posts();
const postIds = this.state.discussion.postIds();
@@ -94,7 +94,7 @@ export default class PostStream extends Component {
);
});
- if (!this.state.viewingEnd && posts[this.state.visibleEnd - this.state.visibleStart - 1]) {
+ if (!viewingEnd && posts[this.state.visibleEnd - this.state.visibleStart - 1]) {
items.push(