userinfo: fix missing profile picture (#3154)

This commit is contained in:
Caleb Doxsey 2022-03-16 10:06:05 -06:00 committed by GitHub
parent ad57ad9b9f
commit 9dedb9eb16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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") {