Fixed at mentions appearing for non-existant users (#1271)
This commit is contained in:
parent
a5ed41a696
commit
8e7fedbcc8
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue