diff --git a/packages/@mantine/core/src/components/Avatar/get-initials-color/get-initials-color.ts b/packages/@mantine/core/src/components/Avatar/get-initials-color/get-initials-color.ts index 9f6f83efb59..3a8c38a0b2c 100644 --- a/packages/@mantine/core/src/components/Avatar/get-initials-color/get-initials-color.ts +++ b/packages/@mantine/core/src/components/Avatar/get-initials-color/get-initials-color.ts @@ -26,7 +26,7 @@ const defaultColors: MantineColor[] = [ ]; export function getInitialsColor(name: string, colors: MantineColor[] = defaultColors) { - const hash = hashCode(getInitials(name)); + const hash = hashCode(name); const index = Math.abs(hash) % colors.length; return colors[index]; }