paricafe/packages/frontend/src/scripts/get-user-name.ts
2022-12-27 14:36:33 +09:00

3 lines
122 B
TypeScript

export default function(user: { name?: string | null, username: string }): string {
return user.name || user.username;
}