This commit is contained in:
Max Peintner
2023-05-24 17:00:42 +02:00
parent 4649d309ad
commit bd6e830eb9

View File

@@ -11,7 +11,7 @@ interface AvatarProps {
shadow?: boolean;
}
function getCredentials(name: string, loginName: string) {
function getInitials(name: string, loginName: string) {
let credentials = "";
if (name) {
const split = name.split(" ");
@@ -47,7 +47,7 @@ export function Avatar({
shadow,
}: AvatarProps) {
const { resolvedTheme } = useTheme();
const credentials = getCredentials(name ?? loginName, loginName);
const credentials = getInitials(name ?? loginName, loginName);
const color: ColorShade = getColorHash(loginName);