Fix loading still shown when no posts are available

master
trivernis 5 years ago
parent 55252f3057
commit aa18bc191c

@ -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);
}
});

Loading…
Cancel
Save