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