({
userId,
loggedUserId,
}: {
userId: string;
loggedUserId: string | null;
})
| 371 | } |
| 372 | |
| 373 | export 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 | |
| 383 | export const getFirstName = (name: string): string => { |
| 384 | return name?.split?.(' ')?.[0] ?? ''; |
no outgoing calls
no test coverage detected