fix: Select yearly as default subscription

This commit is contained in:
Andrea Busi
2025-03-07 09:42:26 +01:00
parent 054603b42d
commit 5387758449
@@ -39,7 +39,7 @@ class SubscriptionDetailsViewController: UITableViewController {
products: [EQNInAppProducts] products: [EQNInAppProducts]
) { ) {
self.products = products self.products = products
self.selectedProduct = products.first(where: { $0.plan == .monthly }) ?? products.first! self.selectedProduct = products.first(where: { $0.plan == .yearly }) ?? products.first!
super.init(style: .plain) super.init(style: .plain)
} }