diff --git a/ui/js/page/discover/view.jsx b/ui/js/page/discover/view.jsx index 91cdfafda..1842b9156 100644 --- a/ui/js/page/discover/view.jsx +++ b/ui/js/page/discover/view.jsx @@ -33,6 +33,10 @@ class DiscoverPage extends React.Component{ featuredUris, fetchingFeaturedUris, } = this.props + const failedToLoad = !fetchingFeaturedUris && ( + featuredUris === undefined || + (featuredUris !== undefined && Object.keys(featuredUris).length === 0) + ) return (
@@ -47,7 +51,7 @@ class DiscoverPage extends React.Component{ )) } { - typeof featuredUris !== undefined && + failedToLoad &&
Failed to load landing content.
}