Skip to content

Commit

Permalink
Revert "CW-mobile-performance Fix words func call"
Browse files Browse the repository at this point in the history
This reverts commit d9aa6e8.
  • Loading branch information
MeyerPV committed Aug 12, 2024
1 parent 218e362 commit 5813f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/utils/shared.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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&${
Expand Down

0 comments on commit 5813f1b

Please sign in to comment.