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