Fix wearable gifts list

This commit is contained in:
Ilya Laktyushin 2026-01-01 17:21:10 +04:00
parent 80f4410f42
commit abb6abdf94
2 changed files with 2 additions and 1 deletions

View file

@ -99,6 +99,7 @@ public final class CollectionTabItemComponent: Component {
pointSize: iconSize,
loopCount: 1
)
iconLayer.isVisibleForAnimations = true
self.layer.addSublayer(iconLayer)
self.iconLayer = iconLayer
}

View file

@ -218,7 +218,7 @@ final class GiftListItemComponent: Component {
))
for gift in component.starGifts {
guard case let .generic(gift) = gift, let title = gift.title else {
guard case let .generic(gift) = gift, let title = gift.title, let resale = gift.availability?.resale, resale > 0 else {
continue
}
tabSelectorItems.append(TabSelectorComponent.Item(