cleanup previous commit

This commit is contained in:
Jeremy Kauffman 2017-07-15 15:24:57 -04:00
parent a7195d12e1
commit 902b7f203c

View file

@ -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 =>