Fix avatar placeholder not displayed (#2611)

This commit is contained in:
Charles Bochet
2023-11-21 12:39:40 +01:00
committed by GitHub
parent b13d84fcda
commit d25f00e04f
2 changed files with 7 additions and 6 deletions

View File

@ -98,7 +98,6 @@ export const Avatar = ({
}: AvatarProps) => {
const noAvatarUrl = !isNonEmptyString(avatarUrl);
const [isInvalidAvatarUrl, setIsInvalidAvatarUrl] = useState(false);
useEffect(() => {
if (avatarUrl) {
new Promise((resolve) => {