...
 
Commits (2)
......@@ -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];
}
......
......@@ -256,7 +256,7 @@ export function renderSystemMessage(post, options) {
return null;
} else if (systemMessageRenderers[post.type]) {
systemMessageRenderers[post.type](post, options);
return systemMessageRenderers[post.type](post, options);
}
return null;
......