From 6e3bbb7f12b0af0581ac2d2985e689cd04d833e2 Mon Sep 17 00:00:00 2001 From: zubiden <19638254+zubiden@users.noreply.github.com> Date: Tue, 30 Sep 2025 16:52:19 +0200 Subject: [PATCH] Profile Info: Hide emoji status from pinned gifts (#6277) --- src/components/common/profile/ProfileInfo.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/common/profile/ProfileInfo.tsx b/src/components/common/profile/ProfileInfo.tsx index 91afe82d0..ce0c773a9 100644 --- a/src/components/common/profile/ProfileInfo.tsx +++ b/src/components/common/profile/ProfileInfo.tsx @@ -183,8 +183,14 @@ const ProfileInfo = ({ }, [profileColorOption, theme, collectibleEmojiStatus]); const pinnedGifts = useMemo(() => { - return savedGifts?.gifts.filter((gift) => gift.isPinned); - }, [savedGifts]); + return savedGifts?.gifts.filter((gift) => { + if (gift.gift.type === 'starGiftUnique') { + return gift.isPinned && gift.gift.slug !== collectibleEmojiStatus?.slug; + } + + return gift.isPinned; + }); + }, [savedGifts, collectibleEmojiStatus?.slug]); useEffect(() => { if (photos.length - currentPhotoIndex <= LOAD_MORE_THRESHOLD) {