Merge remote-tracking branch 'refs/remotes/origin/main'

newoffer2025
Raz 6 months ago
commit 4ce1d5836f
  1. 6
      PadelClub/Views/Tournament/Subscription/SubscriptionView.swift

@ -26,10 +26,11 @@ extension Product {
return StoreItem(rawValue: self.id)!
}
var formattedPrice: String {
let ttcPrice = "\(self.displayPrice) TTC"
if let period = self.subscription?.subscriptionPeriod {
return self.displayPrice + " / " + period.unit.label
return "\(ttcPrice) / \(period.unit.label)"
}
return self.displayPrice
return ttcPrice
}
}
@ -101,6 +102,7 @@ class SubscriptionModel: ObservableObject, StoreDelegate {
} else {
self.totalPrice = product.displayPrice
}
self.totalPrice += " TTC"
} else {
self.totalPrice = ""
}

Loading…
Cancel
Save