Working offtopic tag

This commit is contained in:
Belen Curcio
2017-05-17 09:37:26 -03:00
parent 793f634959
commit 54eb078a13
2 changed files with 13 additions and 7 deletions
@@ -1,9 +1,7 @@
import React from 'react';
import styles from './styles.css';
const isOffTopic = (tags) => {
return !!tags.filter(tag => tag.name === 'OFF_TOPIC').length
}
const isOffTopic = tags => !!tags.filter(i => i.tag.name === 'OFF_TOPIC').length;
export default (props) => (
<span>