Profile Info: Hide emoji status from pinned gifts (#6277)
This commit is contained in:
parent
1a94405798
commit
6e3bbb7f12
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user