mirror of
https://github.com/tale/headplane.git
synced 2026-07-26 15:58:14 +00:00
10 lines
236 B
TypeScript
10 lines
236 B
TypeScript
import type { User } from "~/types/User";
|
|
|
|
export function getUserDisplayName(user: User): string {
|
|
if (user.name === "tagged-devices") {
|
|
return "Tag-owned";
|
|
}
|
|
|
|
return user.name || user.displayName || user.email || user.id;
|
|
}
|