From 19e23479eed5d3ba3567f35528e9dfcc4186265e Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Fri, 22 Sep 2017 17:45:28 -0300 Subject: [PATCH] Showing the indicators --- client/coral-admin/src/components/ui/Header.js | 4 ++-- .../coral-admin/src/routes/Community/components/Community.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/coral-admin/src/components/ui/Header.js b/client/coral-admin/src/components/ui/Header.js index ac67430e5..40a22b7c0 100644 --- a/client/coral-admin/src/components/ui/Header.js +++ b/client/coral-admin/src/components/ui/Header.js @@ -35,7 +35,7 @@ const CoralHeader = ({ to="/admin/moderate" activeClassName={styles.active}> {t('configure.moderate')} - {(root.premodCount !== 0 || root.reportedCount !== 0) && } + {(root.premodCount || root.reportedCount) && } ) } @@ -53,7 +53,7 @@ const CoralHeader = ({ to="/admin/community" activeClassName={styles.active}> {t('configure.community')} - {root.flaggedUsernamesCount !== 0 && } + {root.flaggedUsernamesCount && } { diff --git a/client/coral-admin/src/routes/Community/components/Community.js b/client/coral-admin/src/routes/Community/components/Community.js index 41bca2529..bf300a166 100644 --- a/client/coral-admin/src/routes/Community/components/Community.js +++ b/client/coral-admin/src/routes/Community/components/Community.js @@ -94,7 +94,7 @@ export default class Community extends Component { render() { const {searchValue} = this.state; const tab = this.getTabContent(searchValue, this.props); - const {root: {flaggedUsernamesCount = 0}} = this.props; + const {root: {flaggedUsernamesCount}} = this.props; return (