Skip to content

Commit 37c886a

Browse files
melzrealFredx87
andcommitted
fix: check truthy alias for requester name display
Co-authored-by: Gianluca Frediani <freddy87@gmail.com>
1 parent e2642cc commit 37c886a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/modules/request-list/components/requests-table/requests-table-row/RequestsTableCell.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,7 @@ The same applies for the description. */
179179
}
180180

181181
if (identifier === "requester") {
182-
const nameOrAlias =
183-
user?.alias === undefined || user?.alias === ""
184-
? user?.name
185-
: user?.alias;
182+
const nameOrAlias = user?.alias || user?.name;
186183

187184
return (
188185
<TruncatedTableCell identifier={identifier}>

0 commit comments

Comments
 (0)