FIX: check for presence of name before normalizing

This commit is contained in:
Arpit Jalan 2020-03-27 23:01:48 +05:30
parent 7ff889574d
commit 702879cbda
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ export default Component.extend({
let username = user.username;
let prioritizeName = prioritizeNameInUx(name, this.siteSettings);
let hideName = false;
if (normalize(username) === normalize(name)) {
if (name && normalize(username) === normalize(name)) {
hideName = true;
}