Showing the indicators

This commit is contained in:
Belen Curcio
2017-09-22 17:45:28 -03:00
parent 86687f10d8
commit 19e23479ee
2 changed files with 3 additions and 3 deletions
@@ -35,7 +35,7 @@ const CoralHeader = ({
to="/admin/moderate"
activeClassName={styles.active}>
{t('configure.moderate')}
{(root.premodCount !== 0 || root.reportedCount !== 0) && <Indicator />}
{(root.premodCount || root.reportedCount) && <Indicator />}
</Link>
)
}
@@ -53,7 +53,7 @@ const CoralHeader = ({
to="/admin/community"
activeClassName={styles.active}>
{t('configure.community')}
{root.flaggedUsernamesCount !== 0 && <Indicator />}
{root.flaggedUsernamesCount && <Indicator />}
</Link>
{
@@ -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 (
<div>