MCPcopy Create free account
hub / github.com/dailydotdev/apps / isSpecialUser

Function isSpecialUser

packages/shared/src/lib/user.ts:305–313  ·  view source on GitHub ↗
({
  userId,
  loggedUserId,
}: {
  userId: string;
  loggedUserId: string | null;
})

Source from the content-addressed store, hash-verified

303}
304
305export const isSpecialUser = ({
306 userId,
307 loggedUserId,
308}: {
309 userId: string;
310 loggedUserId: string | null;
311}): boolean => {
312 return !!userId && ['404', loggedUserId].includes(userId);
313};
314
315export const getFirstName = (name: string): string => {
316 return name?.split?.(' ')?.[0] ?? '';

Callers 1

useIsSpecialUserFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected