Skip to content

Commit b0460b5

Browse files
fix: handle undefined cover image URL in ProfileSidebar component
1 parent 5443938 commit b0460b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/core/components/profile/sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export const ProfileSidebar = observer(function ProfileSidebar(props: TProfileSi
102102
</div>
103103
)}
104104
<CoverImage
105-
src={userData?.cover_image_url}
105+
src={userData?.cover_image_url ?? undefined}
106106
alt={userData?.display_name}
107107
className="h-[110px] w-full"
108108
showDefaultWhenEmpty

0 commit comments

Comments
 (0)