From 8e7fedbcc89c836e51fb027c3fd64e8d268b25ce Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Wed, 6 Dec 2017 11:39:25 -0500 Subject: [PATCH] Fixed at mentions appearing for non-existant users (#1271) --- app/components/at_mention/at_mention.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,