diff --git a/app/components/at_mention/at_mention.js b/app/components/at_mention/at_mention.js index 8ac5fb234..0c83363c0 100644 --- a/app/components/at_mention/at_mention.js +++ b/app/components/at_mention/at_mention.js @@ -71,7 +71,7 @@ export default class AtMention extends React.PureComponent { let mentionName = props.mentionName; while (mentionName.length > 0) { - if (props.usersByUsername[mentionName]) { + if (props.usersByUsername.hasOwnProperty(mentionName)) { const user = props.usersByUsername[mentionName]; return { username: user.username,