Skip to content

Commit

Permalink
Merge pull request #757 from Adyen/alert_retain_cycle
Browse files Browse the repository at this point in the history
chore: fix retain cycle
  • Loading branch information
erenbesel authored Jan 6, 2022
2 parents 830eeb4 + fbf2c06 commit 4875d9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AdyenCard/Components/Stored Card/StoredCardAlertManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ internal final class StoredCardAlertManager: NSObject, UITextFieldDelegate, APIC
})

let cancelActionTitle = localizedString(.cancelButton, localizationParameters)
let cancelAction = UIAlertAction(title: cancelActionTitle, style: .cancel) { _ in
self.completionHandler?(.failure(ComponentError.cancelled))
self.resetAlertFields()
let cancelAction = UIAlertAction(title: cancelActionTitle, style: .cancel) { [weak self] _ in
self?.completionHandler?(.failure(ComponentError.cancelled))
self?.resetAlertFields()
}
alertController.addAction(cancelAction)

Expand Down

0 comments on commit 4875d9a

Please sign in to comment.