Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9900d661be |
@@ -34,7 +34,7 @@ export function Avatar({
|
||||
}) {
|
||||
const backgroundColor = useMemo(() => {
|
||||
const index = hashStringToArrIndex(
|
||||
bgKey || fallback || src,
|
||||
bgKey || fallback || src || "",
|
||||
backgroundColors.length
|
||||
);
|
||||
return backgroundColors[index];
|
||||
|
||||
Reference in New Issue
Block a user