From 538775844943bfdc89ddd9b9c1716df766328e28 Mon Sep 17 00:00:00 2001 From: Andrea Busi Date: Fri, 7 Mar 2025 09:42:26 +0100 Subject: [PATCH] fix: Select yearly as default subscription --- .../Controllers/InApp/SubscriptionDetailsViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Earthquake Network/Controllers/InApp/SubscriptionDetailsViewController.swift b/Sources/Earthquake Network/Controllers/InApp/SubscriptionDetailsViewController.swift index 600a26c..926ac7a 100644 --- a/Sources/Earthquake Network/Controllers/InApp/SubscriptionDetailsViewController.swift +++ b/Sources/Earthquake Network/Controllers/InApp/SubscriptionDetailsViewController.swift @@ -39,7 +39,7 @@ class SubscriptionDetailsViewController: UITableViewController { products: [EQNInAppProducts] ) { 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) }