Fix "load more" button being greyed out falsely

This commit is contained in:
2023-04-07 10:01:18 +02:00
parent 8428f6e70e
commit 95e9b8cabf

View File

@ -129,7 +129,7 @@ function loadOlderPosts() {
// There shouldn't be any duplicates, but better be safe than sorry
data.posts = filterDuplicates(data.posts.concat(resp));
// If we got less than we expected, there are no older posts available
moreOlderPostsAvailable = resp.length < (filter.count ?? 20);
moreOlderPostsAvailable = resp.length >= (filter.count ?? 20);
} else {
moreOlderPostsAvailable = false;
}