diff --git a/src/shared/utils/shared.tsx b/src/shared/utils/shared.tsx index 40496a7d1..86213243f 100644 --- a/src/shared/utils/shared.tsx +++ b/src/shared/utils/shared.tsx @@ -124,7 +124,7 @@ export const getRandomUserAvatarURL = ( name?: string | null, textColor = "ffffff", ): string => { - const isOneWord = words(name ?? "", null, null).length === 1; + const isOneWord = words(name ?? "").length === 1; return `https://eu.ui-avatars.com/api/?background=99999D&color=${textColor.substring( 1, )}&name=${name?.replace(/\s/gi, "+")}&rounded=true&${