Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed Upgrade flow issues

  • Loading branch information
mahmoud-adam85 authored and naira-cliqz committed Apr 8, 2019
1 parent 0f6b08b commit 80ac563b9cbc5a746ceaf8f5784c5c3fbc39808d
@@ -111,9 +111,7 @@ class PaidControlCenterViewController: ControlCenterViewController {
}

@objc func handlePurchaseSuccessNotification(_ notification: Notification) {
if !UserPreferences.instance.isProtectionOn {
self.privacyControl.setState(isOn: true)
}
self.privacyControl.setState(isOn: true)
self.enableView()
}

@@ -160,8 +160,8 @@ public class SubscriptionController {
public func hasSubscription(_ premiumType: PremiumType) -> Bool {
let currentSubscription = getCurrentSubscription()
switch currentSubscription {
case .premium(let premiumType, _):
return premiumType == premiumType
case .premium(let purchasedPremiumType, _):
return purchasedPremiumType == premiumType
default:
return false
}

0 comments on commit 80ac563

Please sign in to comment.