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

Function isSpecialUser

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

Source from the content-addressed store, hash-verified

371}
372
373export const isSpecialUser = ({
374 userId,
375 loggedUserId,
376}: {
377 userId: string;
378 loggedUserId: string | null;
379}): boolean => {
380 return !!userId && ['404', loggedUserId].includes(userId);
381};
382
383export const getFirstName = (name: string): string => {
384 return name?.split?.(' ')?.[0] ?? '';

Callers 4

WhyRecommendedContentFunction · 0.90
SourcesTabFunction · 0.90
FeedExplanationModalFunction · 0.90
useIsSpecialUserFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected