Skip to content

Commit

Permalink
iOS 15 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vegaro committed Nov 15, 2024
1 parent 86d56fd commit 7b2855b
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,15 @@ private extension LoadPromotionalOfferUseCase {
productIdentifier: String,
promoOfferDetails: CustomerCenterConfigData.HelpPath.PromotionalOffer
) {
let message = if !promoOfferDetails.productMapping.isEmpty {
Strings.could_not_offer_for_active_subscriptions(
let message = !promoOfferDetails.productMapping.isEmpty
? Strings.could_not_offer_for_active_subscriptions(
promoOfferDetails.productMapping[productIdentifier] ?? "nil",
productIdentifier
)
} else {
Strings.could_not_offer_for_active_subscriptions(
: Strings.could_not_offer_for_active_subscriptions(
promoOfferDetails.iosOfferId,
productIdentifier
)
}
Logger.debug(message)
}

Expand Down

0 comments on commit 7b2855b

Please sign in to comment.