Skip to content

Commit

Permalink
fixup! Add StoreKit2 button
Browse files Browse the repository at this point in the history
  • Loading branch information
pinkisemils committed Dec 27, 2024
1 parent 1587159 commit ed515a1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ios/MullvadVPN/Classes/AccessbilityIdentifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public enum AccessibilityIdentifier: Equatable {
case loginTextFieldButton
case logoutButton
case purchaseButton
case storekit2Button
case storeKit2Button
case redeemVoucherButton
case restorePurchasesButton
case secureConnectionButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class AccountContentView: UIView {
value: "Make a purchase with StoreKit2",
comment: ""
), for: .normal)
button.setAccessibilityIdentifier(.storekit2Button)
button.setAccessibilityIdentifier(.storeKit2Button)
return button
}()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,6 @@ class AccountViewController: UIViewController {
}

@objc private func handleStoreKit2Purchase() {
guard let accountData = interactor.deviceState.accountData else {
return
}
guard case let .received(oldProduct) = productState,
let accountData = interactor.deviceState.accountData
else {
Expand Down

0 comments on commit ed515a1

Please sign in to comment.