diff options
Diffstat (limited to 'webapp/stores/post_store.jsx')
-rw-r--r-- | webapp/stores/post_store.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/stores/post_store.jsx b/webapp/stores/post_store.jsx index 2d0d7a674..cdd3f5860 100644 --- a/webapp/stores/post_store.jsx +++ b/webapp/stores/post_store.jsx @@ -178,15 +178,15 @@ class PostStoreClass extends EventEmitter { } // Returns true if posts need to be fetched - requestVisibilityIncrease(id, ammount) { + requestVisibilityIncrease(id, amount) { const endVisible = this.postsInfo[id].endVisible; const postList = this.postsInfo[id].postList; if (this.getVisibilityAtTop(id)) { return false; } - this.postsInfo[id].endVisible += ammount; + this.postsInfo[id].endVisible += amount; this.emitChange(); - return endVisible + ammount > postList.order.length; + return endVisible + amount > postList.order.length; } getFocusedPostId() { |