fix: Solve typo in constant

This commit is contained in:
Andrea Busi
2021-03-09 21:49:44 +01:00
parent f08a4b47aa
commit 23c7069660
@@ -14,7 +14,7 @@ import StoreKit
class SubscriptionDetailViewController: UIViewController {
/// Enable this allows shake to enable the current subscription
private static let ShareToEnableSubscription = false
private static let ShakeToEnableSubscription = false
var product: SKProduct? {
didSet {
@@ -126,7 +126,7 @@ class SubscriptionDetailViewController: UIViewController {
extension SubscriptionDetailViewController {
override func motionEnded(_ motion: UIEvent.EventSubtype, with event: UIEvent?) {
guard let product = product, event?.subtype == .motionShake, Self.ShareToEnableSubscription else {
guard let product = product, event?.subtype == .motionShake, Self.ShakeToEnableSubscription else {
return
}