diff --git a/src/Avatar.jsx b/src/Avatar.jsx index 85b6255..fcfc333 100644 --- a/src/Avatar.jsx +++ b/src/Avatar.jsx @@ -34,7 +34,7 @@ export function Avatar({ }) { const backgroundColor = useMemo(() => { const index = hashStringToArrIndex( - bgKey || fallback || src, + bgKey || fallback || src || "", backgroundColors.length ); return backgroundColors[index];