Skip to content

Commit f696cfb

Browse files
committed
Fix
1 parent 7fd14c1 commit f696cfb

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

submodules/TelegramUI/Components/Gifts/GiftOptionsScreen/Sources/GiftOptionsScreen.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -450,12 +450,7 @@ final class GiftOptionsScreenComponent: Component {
450450
mainController = controller
451451
}
452452
if case let .generic(gift) = gift {
453-
var forceStore = !"".isEmpty
454-
#if DEBUG
455-
forceStore = true
456-
#endif
457-
458-
if let availability = gift.availability, availability.remains == 0 || (availability.resale > 0 && forceStore) {
453+
if let availability = gift.availability, availability.remains == 0 || (availability.resale > 0) {
459454
if availability.resale > 0 {
460455
let storeController = component.context.sharedContext.makeGiftStoreController(
461456
context: component.context,

0 commit comments

Comments
 (0)