Skip to content

Commit

Permalink
Don't pop view controller when banner dismisses (#2007)
Browse files Browse the repository at this point in the history
  • Loading branch information
ifosli committed Mar 28, 2024
1 parent f16bae7 commit e89dccd
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ final class PostCampaignCheckoutViewController: UIViewController, MessageBannerV
self.title = Strings.Back_this_project()

self.messageBannerViewController = self.configureMessageBannerViewController(on: self)
self.messageBannerViewController?.delegate = self

self.configureChildViewControllers()
self.setupConstraints()
Expand Down Expand Up @@ -378,17 +377,6 @@ extension PostCampaignCheckoutViewController: PledgeViewControllerMessageDisplay

// MARK: - MessageBannerViewControllerDelegate

extension PostCampaignCheckoutViewController: MessageBannerViewControllerDelegate {
func messageBannerViewDidHide(type: MessageBannerType) {
switch type {
case .error:
self.navigationController?.popViewController(animated: true)
default:
break
}
}
}

extension PostCampaignCheckoutViewController: PKPaymentAuthorizationViewControllerDelegate {
func paymentAuthorizationViewControllerDidFinish(_ controller: PKPaymentAuthorizationViewController) {
controller.dismiss(animated: true, completion: { [weak self] in
Expand Down

0 comments on commit e89dccd

Please sign in to comment.