From b3adb6c9a01b04d6ee2eb3762f99713da17873f3 Mon Sep 17 00:00:00 2001 From: "Tom (plebeius.eth)" Date: Fri, 20 Sep 2024 16:16:09 +0200 Subject: [PATCH] Update post-mobile.tsx --- src/components/post-mobile/post-mobile.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/post-mobile/post-mobile.tsx b/src/components/post-mobile/post-mobile.tsx index 61dacc4d..84915db8 100644 --- a/src/components/post-mobile/post-mobile.tsx +++ b/src/components/post-mobile/post-mobile.tsx @@ -51,7 +51,7 @@ const PostInfoAndMedia = ({ openReplyModal, post, postReplyCount = 0, roles }: P const handleUserAddressClick = useAuthorAddressClick(); const numberOfPostsByAuthor = document.querySelectorAll(`[data-author-address="${shortAddress}"][data-post-cid="${postCid}"]`).length; - const userID = shortAddress; + const userID = address && Plebbit.getShortAddress(address); const userIDBackgroundColor = hashStringToColor(userID); const userIDTextColor = getTextColorForBackground(userIDBackgroundColor);