mirror of
https://github.com/tale/headplane.git
synced 2026-07-26 15:58:14 +00:00
fix: handle the tag owner username
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user