added suggested changes

This commit is contained in:
Juan David Martinez 2025-03-07 15:13:00 -05:00
parent 174f88ecae
commit 770d06f0ca
No known key found for this signature in database
GPG Key ID: FE50F4B983E68D5B
1 changed files with 3 additions and 2 deletions

View File

@ -482,7 +482,7 @@ function initialize(api) {
let name;
name =
this.siteSettings.prioritize_full_name_in_ux || !assignee.username
siteSettings.prioritize_full_name_in_ux || !assignee.username
? assignee.name || assignee.username
: assignee.username;
@ -581,7 +581,7 @@ function initialize(api) {
let displayedName = "";
if (assignedToUser) {
this.siteSettings.prioritize_full_name_in_ux
displayedName = this.siteSettings.prioritize_full_name_in_ux
? assignedToUser.name || assignedToUser.username
: assignedToUser.username;
@ -617,6 +617,7 @@ function initialize(api) {
Object.keys(indirectlyAssignedTo).map((postId) => {
const assignee = indirectlyAssignedTo[postId].assigned_to;
const postNumber = indirectlyAssignedTo[postId].post_number;
displayedName =
this.siteSettings.prioritize_full_name_in_ux || !assignee.username
? assignee.name || assignee.username