diff --git a/src/components/profile/ProfileView.tsx b/src/components/profile/ProfileView.tsx index 6078756..122f922 100644 --- a/src/components/profile/ProfileView.tsx +++ b/src/components/profile/ProfileView.tsx @@ -34,6 +34,7 @@ export function ProfileView() { const [profileTab, setProfileTab] = useState<"notes" | "articles" | "media">("notes"); const [bannerLightbox, setBannerLightbox] = useState(false); const [bannerLoaded, setBannerLoaded] = useState(false); + const [bannerError, setBannerError] = useState(false); const isFollowing = follows.includes(pubkey); const { mutedPubkeys, mute, unmute } = useMuteStore(); @@ -62,6 +63,8 @@ export function ProfileView() { useEffect(() => { setLoading(true); setProfileTab("notes"); + setBannerLoaded(false); + setBannerError(false); fetchUserNotesNIP65(pubkey).then((events) => { setNotes(events); setLoading(false); @@ -151,7 +154,7 @@ export function ProfileView() { {!editing && (