fix: handle the tag owner username

This commit is contained in:
Aarnav Tale
2026-04-07 00:32:59 -04:00
parent 44dffeaff0
commit 98e0806e5a
+4
View File
@@ -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;
}