mirror of
https://github.com/wassname/talk.git
synced 2026-08-16 11:29:31 +08:00
Making user action item_type 'users' for consistency.
This commit is contained in:
@@ -47,7 +47,7 @@ class FlagButton extends Component {
|
||||
case 'comments':
|
||||
item_id = id;
|
||||
break;
|
||||
case 'user':
|
||||
case 'users':
|
||||
item_id = author_id;
|
||||
break;
|
||||
}
|
||||
@@ -72,7 +72,7 @@ class FlagButton extends Component {
|
||||
onPopupOptionClick = (sets) => (e) => {
|
||||
|
||||
// If flagging a user, indicate that this is referencing the username rather than the bio
|
||||
if(sets === 'itemType' && e.target.value === 'user') {
|
||||
if(sets === 'itemType' && e.target.value === 'users') {
|
||||
this.setState({field: 'username'});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user