From aa18bc191c459939f566532bfc11cb8c5f05fddf Mon Sep 17 00:00:00 2001 From: trivernis Date: Mon, 20 Jan 2020 18:23:27 +0100 Subject: [PATCH] Fix loading still shown when no posts are available --- src/app/services/feed/feed.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/services/feed/feed.service.ts b/src/app/services/feed/feed.service.ts index 62aea92..1689b91 100644 --- a/src/app/services/feed/feed.service.ts +++ b/src/app/services/feed/feed.service.ts @@ -257,7 +257,7 @@ export class FeedService extends BaseService { } } this.posts.next(posts); - if (posts.length < this.offsetStep) { + if (response.data.getPosts.length < this.offsetStep) { this.postsAvailable.next(false); } });