Skip to content

Commit

Permalink
Fix flash of onboarding when loading recent feed.
Browse files Browse the repository at this point in the history
  • Loading branch information
allilevine committed Dec 5, 2024
1 parent 6863ba0 commit 7b042ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/reader/following/use-site-subscriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export function useSiteSubscriptions() {
}

// If we have site subscriptions data, filter out self-owned blogs.
if ( siteSubscriptions?.subscriptions ) {
// Self-owned blogs are not returned in the feed.
if ( siteSubscriptions?.subscriptions.length > 0 ) {
const nonSelfSubscriptions = siteSubscriptions.subscriptions.filter(
( sub ) => ! sub.is_owner
);
Expand Down

0 comments on commit 7b042ee

Please sign in to comment.