From eb1939998485f16856a1dc28a11f3c882fd39a2e Mon Sep 17 00:00:00 2001 From: "Kalle (Sendou)" <38327916+Sendouc@users.noreply.github.com> Date: Fri, 7 Jan 2022 13:46:45 +0200 Subject: [PATCH] Temp placeholder in UserItem when no avatar --- app/components/Layout/UserItem.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/components/Layout/UserItem.tsx b/app/components/Layout/UserItem.tsx index 23a5e83b3..7ea99cec6 100644 --- a/app/components/Layout/UserItem.tsx +++ b/app/components/Layout/UserItem.tsx @@ -7,7 +7,7 @@ export function UserItem() { const user = useUser(); const location = useLocation(); - if (user) + if (user && user.discordAvatar) return ( ); + // TODO: just show text... my profile? + // TODO: also show this if discordAvatar is stale and 404's + if (user) { + return
; + } + return (