Compare commits

...

1 Commits

Author SHA1 Message Date
Robert Long
9900d661be Fix avatar background when bgKey undefined 2022-03-01 11:37:45 -08:00

View File

@@ -34,7 +34,7 @@ export function Avatar({
}) {
const backgroundColor = useMemo(() => {
const index = hashStringToArrIndex(
bgKey || fallback || src,
bgKey || fallback || src || "",
backgroundColors.length
);
return backgroundColors[index];