From c7e38b91e6b3082550ad857666abe67883033491 Mon Sep 17 00:00:00 2001 From: Ezerous Date: Mon, 1 Mar 2021 10:44:34 +0200 Subject: [PATCH] fix: fixed profile images not displaying --- packages/concordia-app/src/components/ProfileImage.jsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/concordia-app/src/components/ProfileImage.jsx b/packages/concordia-app/src/components/ProfileImage.jsx index f7be574..619f004 100644 --- a/packages/concordia-app/src/components/ProfileImage.jsx +++ b/packages/concordia-app/src/components/ProfileImage.jsx @@ -6,7 +6,7 @@ import { USER_PROFILE_PICTURE } from '../constants/orbit/UserDatabaseKeys'; const ProfileImage = (props) => { const { - profileAddress, profileUsername, topicAuthorMeta, avatarUrl, size, link, + profileAddress, profileUsername, profileUserMeta, avatarUrl, size, link, } = props; const stopClickPropagation = (event) => { @@ -16,7 +16,9 @@ const ProfileImage = (props) => { const authorAvatar = useMemo(() => { let profileImageUrl = ''; if (avatarUrl) profileImageUrl = avatarUrl; - else if (topicAuthorMeta && topicAuthorMeta[USER_PROFILE_PICTURE]) profileImageUrl = topicAuthorMeta[USER_PROFILE_PICTURE]; + else if (profileUserMeta && profileUserMeta[USER_PROFILE_PICTURE]) { + profileImageUrl = profileUserMeta[USER_PROFILE_PICTURE]; + } return ( { src={profileImageUrl} /> ); - }, [avatarUrl, size, profileUsername, topicAuthorMeta]); + }, [avatarUrl, size, profileUsername, profileUserMeta]); return useMemo(() => { if (link && profileAddress) {