hippofish/packages/client/src/scripts/get-user-name.ts
ThatOneCalculator 6b00abf05c
refactor: 🎨 rome
2023-01-12 20:40:33 -08:00

6 lines
126 B
TypeScript

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