From 702879cbda52b69179002c4410ac9b8fcfc4b12d Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Fri, 27 Mar 2020 23:01:48 +0530 Subject: [PATCH] FIX: check for presence of name before normalizing --- app/assets/javascripts/discourse/components/about-page-users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/components/about-page-users.js b/app/assets/javascripts/discourse/components/about-page-users.js index 92936610d21..ce2589491dd 100644 --- a/app/assets/javascripts/discourse/components/about-page-users.js +++ b/app/assets/javascripts/discourse/components/about-page-users.js @@ -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; }