From 95e9b8cabf0fee8aea675dcf96123c1d9469045c Mon Sep 17 00:00:00 2001 From: Max Nuding Date: Fri, 7 Apr 2023 10:01:18 +0200 Subject: [PATCH] Fix "load more" button being greyed out falsely --- src/routes/+page.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 82d4b89..a0ccd59 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -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; }