diff --git a/src/components/app-body/nostr/feeds/feed-card.js b/src/components/app-body/nostr/feeds/feed-card.js
index defcffa..33e339a 100644
--- a/src/components/app-body/nostr/feeds/feed-card.js
+++ b/src/components/app-body/nostr/feeds/feed-card.js
@@ -25,6 +25,7 @@ function FeedCard (props) {
const [isLiked, setIsLiked] = useState(false)
const [likesCount, setLikesCount] = useState(null)
const [likesFetched, setLikesFetched] = useState(false)
+ const [profilePictureError, setProfilePictureError] = useState(false)
// function to fetch a post likes reaction
const handleLikes = useCallback(async (post, userPubKey) => {
@@ -76,6 +77,15 @@ function FeedCard (props) {
console.warn(error)
}
}, [])
+
+ const handleProfilePictureError = () => {
+ setProfilePictureError(true)
+ }
+
+ const handleProfilePictureLoad = () => {
+ setProfilePictureError(false)
+ }
+
// Get npub from pubkey
useEffect(() => {
const npub = nip19.npubEncode(post.pubkey)
@@ -170,7 +180,20 @@ function FeedCard (props) {
background: 'linear-gradient(45deg, #6c757d, #495057)'
}}
>
-
+ )
+ : (
+