We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9aa6e8 commit 9fecc76Copy full SHA for 9fecc76
src/shared/utils/shared.tsx
@@ -124,7 +124,7 @@ export const getRandomUserAvatarURL = (
124
name?: string | null,
125
textColor = "ffffff",
126
): string => {
127
- const isOneWord = words(name ?? "", null, null).length === 1;
+ const isOneWord = words(name ?? "", undefined, undefined).length === 1;
128
return `https://eu.ui-avatars.com/api/?background=99999D&color=${textColor.substring(
129
1,
130
)}&name=${name?.replace(/\s/gi, "+")}&rounded=true&${
0 commit comments