Commit 115f46b7 authored by Sudheer's avatar Sudheer Committed by Harrison Healey

Fix atmention to check for user on users object only (#419)

parent 60940399
......@@ -51,7 +51,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