MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / displayName

Function displayName

apps/ui/src/lib/users/display-name.ts:7–11  ·  view source on GitHub ↗
(user: IUser)

Source from the content-addressed store, hash-verified

5 * no first/last name set (e.g. fresh OAuth registration, or skipped profile).
6 */
7export function displayName(user: IUser): string {
8 const full = `${user.firstName} ${user.lastName}`.trim();
9
10 return full !== "" ? full : user.email;
11}

Callers 2

useAppShellFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected