diff --git a/IVPNClient/Models/ServiceStatus.swift b/IVPNClient/Models/ServiceStatus.swift index 9da217960..6d78209cf 100644 --- a/IVPNClient/Models/ServiceStatus.swift +++ b/IVPNClient/Models/ServiceStatus.swift @@ -116,7 +116,7 @@ struct ServiceStatus: Codable { func isLegacyAccount() -> Bool { let accountId = KeyChain.username ?? "" - if accountId.hasPrefix("ivpn") && currentPlan.hasPrefix("IVPN Pro") && currentPlan != "IVPN Pro" { + if accountId.hasPrefix("ivpn") && currentPlan.contains("VPN Pro") && currentPlan != "IVPN Pro" { return true } diff --git a/IVPNClient/Scenes/AccountScreen/View/AccountView.swift b/IVPNClient/Scenes/AccountScreen/View/AccountView.swift index ab6da068d..9962c1b07 100644 --- a/IVPNClient/Scenes/AccountScreen/View/AccountView.swift +++ b/IVPNClient/Scenes/AccountScreen/View/AccountView.swift @@ -33,7 +33,7 @@ class AccountView: UITableView { @IBOutlet weak var subscriptionLabel: UILabel! @IBOutlet weak var activeUntilLabel: UILabel! @IBOutlet weak var logOutActionButton: UIButton! - @IBOutlet weak var addMoreTimeButton: UIButton! + @IBOutlet weak var activeUntilCell: UITableViewCell! // MARK: - Properties - @@ -47,7 +47,7 @@ class AccountView: UITableView { statusLabel.backgroundColor = viewModel.statusColor subscriptionLabel.text = viewModel.subscriptionText activeUntilLabel.text = viewModel.activeUntilText - addMoreTimeButton.isHidden = Application.shared.serviceStatus.isLegacyAccount() + activeUntilCell.isHidden = Application.shared.serviceStatus.isLegacyAccount() } func initQRCode(viewModel: AccountViewModel) { diff --git a/IVPNClient/Scenes/Base.lproj/Main.storyboard b/IVPNClient/Scenes/Base.lproj/Main.storyboard index 3728b6d84..75a345e2c 100644 --- a/IVPNClient/Scenes/Base.lproj/Main.storyboard +++ b/IVPNClient/Scenes/Base.lproj/Main.storyboard @@ -1,9 +1,9 @@ - + - + @@ -4560,8 +4560,8 @@ + - diff --git a/IVPNClient/Scenes/Signup/LoginViewController.swift b/IVPNClient/Scenes/Signup/LoginViewController.swift index 36042b089..14a3b5eac 100644 --- a/IVPNClient/Scenes/Signup/LoginViewController.swift +++ b/IVPNClient/Scenes/Signup/LoginViewController.swift @@ -279,6 +279,9 @@ extension LoginViewController { KeyChain.username = (self.userName.text ?? "").trim() guard !Application.shared.serviceStatus.isLegacyAccount() else { + navigationController?.dismiss(animated: true, completion: { + NotificationCenter.default.post(name: Notification.Name.UpdateFloatingPanelLayout, object: nil) + }) return }