Fix avatar background when bgKey undefined
This commit is contained in:
parent
369b59a203
commit
9900d661be
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ export function Avatar({
|
|||
}) {
|
||||
const backgroundColor = useMemo(() => {
|
||||
const index = hashStringToArrIndex(
|
||||
bgKey || fallback || src,
|
||||
bgKey || fallback || src || "",
|
||||
backgroundColors.length
|
||||
);
|
||||
return backgroundColors[index];
|
||||
|
|
Loading…
Reference in a new issue