diff --git a/client/coral-plugin-flags/FlagButton.js b/client/coral-plugin-flags/FlagButton.js index 23943318d..8fc747ce1 100644 --- a/client/coral-plugin-flags/FlagButton.js +++ b/client/coral-plugin-flags/FlagButton.js @@ -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'}); } diff --git a/client/coral-plugin-flags/FlagComment.js b/client/coral-plugin-flags/FlagComment.js index 57d02f719..54dc954d9 100644 --- a/client/coral-plugin-flags/FlagComment.js +++ b/client/coral-plugin-flags/FlagComment.js @@ -10,7 +10,7 @@ const getPopupMenu = [ return { header: lang.t('step-1-header'), options: [ - {val: 'user', text: lang.t('flag-username')}, + {val: 'users', text: lang.t('flag-username')}, {val: 'comments', text: lang.t('flag-comment')} ], button: lang.t('continue'),