From 9dedb9eb165a752badfb7000752281cb067ec3de Mon Sep 17 00:00:00 2001 From: Caleb Doxsey Date: Wed, 16 Mar 2022 10:06:05 -0600 Subject: [PATCH] userinfo: fix missing profile picture (#3154) --- ui/src/components/Avatar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/Avatar.tsx b/ui/src/components/Avatar.tsx index 054619394..f47928e24 100644 --- a/ui/src/components/Avatar.tsx +++ b/ui/src/components/Avatar.tsx @@ -10,7 +10,7 @@ type AvatarProps = { export const Avatar = ({ url, name }: AvatarProps): JSX.Element => { if (isArray(url)) { - url = url?.pop(); + url = url?.[0]; } if (url === "https://graph.microsoft.com/v1.0/me/photo/$value") {