diff --git a/ui/page/home/index.js b/ui/page/home/index.js index 44f52c62e..b99a80f51 100644 --- a/ui/page/home/index.js +++ b/ui/page/home/index.js @@ -5,7 +5,7 @@ import { doFetchActiveLivestreams } from 'redux/actions/livestream'; import { selectAdBlockerFound } from 'redux/selectors/app'; import { selectActiveLivestreams, selectFetchingActiveLivestreams } from 'redux/selectors/livestream'; import { selectFollowedTags } from 'redux/selectors/tags'; -import { selectHasOdyseeMembership, selectUserVerifiedEmail } from 'redux/selectors/user'; +import { selectHasOdyseeMembership, selectHomepageFetched, selectUserVerifiedEmail } from 'redux/selectors/user'; import { selectSubscriptions } from 'redux/selectors/subscriptions'; import { selectShowMatureContent, selectHomepageData, selectClientSetting } from 'redux/selectors/settings'; @@ -17,6 +17,7 @@ const select = (state) => ({ authenticated: selectUserVerifiedEmail(state), showNsfw: selectShowMatureContent(state), homepageData: selectHomepageData(state), + homepageFetched: selectHomepageFetched(state), activeLivestreams: selectActiveLivestreams(state), fetchingActiveLivestreams: selectFetchingActiveLivestreams(state), hideScheduledLivestreams: selectClientSetting(state, SETTINGS.HIDE_SCHEDULED_LIVESTREAMS), diff --git a/ui/page/home/view.jsx b/ui/page/home/view.jsx index e85c642f3..e09eaea11 100644 --- a/ui/page/home/view.jsx +++ b/ui/page/home/view.jsx @@ -33,6 +33,7 @@ type Props = { subscribedChannels: Array, showNsfw: boolean, homepageData: any, + homepageFetched: boolean, activeLivestreams: any, doFetchActiveLivestreams: () => void, fetchingActiveLivestreams: boolean, @@ -50,6 +51,7 @@ function HomePage(props: Props) { authenticated, showNsfw, homepageData, + homepageFetched, activeLivestreams, doFetchActiveLivestreams, fetchingActiveLivestreams, @@ -237,7 +239,7 @@ function HomePage(props: Props) { )} - {sortedRowData.length === 0 && authenticated && ( + {sortedRowData.length === 0 && authenticated && homepageFetched && (