mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-29 13:36:43 -06:00
4 lines
122 B
TypeScript
4 lines
122 B
TypeScript
|
export default function(user: { name?: string | null, username: string }): string {
|
||
|
return user.name || user.username;
|
||
|
}
|