We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbbd5f7 commit b7a70b7Copy full SHA for b7a70b7
frontend/src/modal/Profile.tsx
@@ -43,7 +43,11 @@ const ProfileContent: React.FC = () => {
43
<div className="avatar-background" style={{ backgroundImage: `url(${data?.banner_url})` }}>
44
<div className="profile-column">
45
<IonAvatar>
46
- <img src={data?.avatar_url} />
+ <img
47
+ src={data?.avatar_url ?? "/album-placeholder.png"}
48
+ onError={(e) => ((e.target as HTMLImageElement).src = "/album-placeholder.png")}
49
+ alt=""
50
+ />
51
</IonAvatar>
52
</div>
53
<IonCard style={{ textAlign: "center", marginBottom: 50 }}>
0 commit comments