Function
isSpecialUser
({
userId,
loggedUserId,
}: {
userId: string;
loggedUserId: string | null;
})
Source from the content-addressed store, hash-verified
| 303 | } |
| 304 | |
| 305 | export 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 | |
| 315 | export const getFirstName = (name: string): string => { |
| 316 | return name?.split?.(' ')?.[0] ?? ''; |
Tested by
no test coverage detected