Temp placeholder in UserItem when no avatar

This commit is contained in:
Kalle (Sendou) 2022-01-07 13:46:45 +02:00
parent 380644794b
commit eb19399984

View File

@ -7,7 +7,7 @@ export function UserItem() {
const user = useUser();
const location = useLocation();
if (user)
if (user && user.discordAvatar)
return (
<img
className="layout__avatar"
@ -15,6 +15,12 @@ export function UserItem() {
/>
);
// TODO: just show text... my profile?
// TODO: also show this if discordAvatar is stale and 404's
if (user) {
return <div className="layout__header__logo-container" />;
}
return (
<form action={getLogInUrl(location)} method="post" data-cy="log-in-form">
<button