allow follow topic only when following user

This commit is contained in:
Leon Liang 2019-12-06 02:23:28 -05:00
parent 39613584e7
commit a4efc15d58

View File

@ -258,7 +258,7 @@ class user extends Component {
onDelete
deleteIcon={<DoneIcon />}
/>
) : (
) : this.state.following ? (
<MyChip
label={topic}
key={{ topic }.topic.id} // BUG: this value is undefined
@ -266,6 +266,12 @@ class user extends Component {
clickable
onClick={key => this.handleAdd(topic)}
/>
) : (
<MyChip
label={topic}
key={{ topic }.topic.id} // BUG: this value is undefined
color="secondary"
/>
)
) : (
<p></p>