Commit 967838fb authored by Harrison Healey's avatar Harrison Healey
Browse files

Fix atMention to check for user on users object only

parent 28c68250
......@@ -49,7 +49,7 @@ export default class AtMention extends React.PureComponent {
let mentionName = props.mentionName;
while (mentionName.length > 0) {
if (usersByUsername[mentionName]) {
if (usersByUsername.hasOwnProperty(mentionName)) {
return usersByUsername[mentionName];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment