diff --git a/app/components/Avatar.tsx b/app/components/Avatar.tsx index ecd849e4c..6980061b8 100644 --- a/app/components/Avatar.tsx +++ b/app/components/Avatar.tsx @@ -1,5 +1,6 @@ import clsx from "clsx"; import type { User } from "~/db/types"; +import * as React from "react"; const dimensions = { sm: 44, @@ -17,6 +18,7 @@ export function Avatar({ className?: string; size: "sm" | "md" | "lg"; } & React.ButtonHTMLAttributes) { + const [isErrored, setIsErrored] = React.useState(false); // TODO: just show text... my profile? // TODO: also show this if discordAvatar is stale and 404's @@ -24,8 +26,8 @@ export function Avatar({ setIsErrored(true)} {...rest} /> );