mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-10-27 19:36:56 +01:00
3 lines
157 B
TypeScript
3 lines
157 B
TypeScript
export default function(user: { name?: string | null, username: string }): string {
|
|
return user.name === '' ? user.username : user.name ?? user.username;
|
|
}
|