mirror of
https://github.com/MisskeyIO/misskey
synced 2024-12-23 11:08:22 +09:00
4 lines
157 B
TypeScript
4 lines
157 B
TypeScript
export default function(user: { name?: string | null, username: string }): string {
|
|
return user.name === '' ? user.username : user.name ?? user.username;
|
|
}
|