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 (