mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-18 02:58:48 +00:00
allow follow topic only when following user
This commit is contained in:
parent
39613584e7
commit
a4efc15d58
@ -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>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user