mirror of
https://codeberg.org/yeentown/barkey
synced 2024-12-05 04:27:26 +00: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;
|
|
}
|