Skip to content

Commit 9fecc76

Browse files
committed
CW-mobile-performance Fix eslint
1 parent d9aa6e8 commit 9fecc76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/utils/shared.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export const getRandomUserAvatarURL = (
124124
name?: string | null,
125125
textColor = "ffffff",
126126
): string => {
127-
const isOneWord = words(name ?? "", null, null).length === 1;
127+
const isOneWord = words(name ?? "", undefined, undefined).length === 1;
128128
return `https://eu.ui-avatars.com/api/?background=99999D&color=${textColor.substring(
129129
1,
130130
)}&name=${name?.replace(/\s/gi, "+")}&rounded=true&${

0 commit comments

Comments
 (0)