cleanup previous commit
This commit is contained in:
parent
a7195d12e1
commit
902b7f203c
1 changed files with 4 additions and 7 deletions
|
@ -45,12 +45,9 @@ class DiscoverPage extends React.PureComponent {
|
|||
|
||||
render() {
|
||||
const { featuredUris, fetchingFeaturedUris } = this.props;
|
||||
const failedToLoad =
|
||||
!fetchingFeaturedUris &&
|
||||
(featuredUris === undefined ||
|
||||
(featuredUris !== undefined && Object.keys(featuredUris).length === 0)),
|
||||
hasContent =
|
||||
typeof featuredUris === "object" && Object.keys(featuredUris).length;
|
||||
const hasContent =
|
||||
typeof featuredUris === "object" && Object.keys(featuredUris).length,
|
||||
failedToLoad = !fetchingFeaturedUris && !hasContent;
|
||||
|
||||
return (
|
||||
<main
|
||||
|
@ -60,7 +57,7 @@ class DiscoverPage extends React.PureComponent {
|
|||
>
|
||||
{!hasContent &&
|
||||
fetchingFeaturedUris &&
|
||||
<BusyMessage message={__("Fetching content")} style={busyStyle} />}
|
||||
<BusyMessage message={__("Fetching content")} />}
|
||||
{hasContent &&
|
||||
Object.keys(featuredUris).map(
|
||||
category =>
|
||||
|
|
Loading…
Reference in a new issue