Skip to content

Commit 6b297c2

Browse files
committed
🐛 Added username fallback when no name;
1 parent d3d33ca commit 6b297c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Github_User_Info/Github_User_Info.user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@
337337
userAvatarImg.setAttribute('src', data.avatar);
338338

339339
userName.setAttribute('title', data.username);
340-
userName.textContent = data.name;
340+
userName.textContent = data.name || data.username;
341341

342342
if (hasValue(data.company, userCompany)) {
343343
userCompanyText.textContent = data.company;

0 commit comments

Comments
 (0)