fix: use 2 characters on <Avatar /> fallback (#22106)

This commit is contained in:
Jake Howell
2026-02-15 13:31:44 +11:00
committed by GitHub
parent 1591f42d9b
commit 06039a51ff
+1 -1
View File
@@ -83,7 +83,7 @@ export const Avatar: React.FC<AvatarProps> = ({
/>
{fallback && (
<AvatarPrimitive.Fallback className="flex h-full w-full items-center justify-center rounded-full">
{fallback.charAt(0).toUpperCase()}
{fallback.slice(0, 2).toUpperCase()}
</AvatarPrimitive.Fallback>
)}
{children}