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]);
|
}, [profileColorOption, theme, collectibleEmojiStatus]);
|
||||||
|
|
||||||
const pinnedGifts = useMemo(() => {
|
const pinnedGifts = useMemo(() => {
|
||||||
return savedGifts?.gifts.filter((gift) => gift.isPinned);
|
return savedGifts?.gifts.filter((gift) => {
|
||||||
}, [savedGifts]);
|
if (gift.gift.type === 'starGiftUnique') {
|
||||||
|
return gift.isPinned && gift.gift.slug !== collectibleEmojiStatus?.slug;
|
||||||
|
}
|
||||||
|
|
||||||
|
return gift.isPinned;
|
||||||
|
});
|
||||||
|
}, [savedGifts, collectibleEmojiStatus?.slug]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (photos.length - currentPhotoIndex <= LOAD_MORE_THRESHOLD) {
|
if (photos.length - currentPhotoIndex <= LOAD_MORE_THRESHOLD) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user