From 21e31c59253dbee1a2363255b55474761cb0997e Mon Sep 17 00:00:00 2001 From: Ingerid Fosli Date: Wed, 25 Sep 2024 14:47:14 -0600 Subject: [PATCH] Add no shipping post campaign VC to payment methods assert (#2162) --- .../Controller/PledgePaymentMethodsViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Kickstarter-iOS/Features/PledgePaymentMethods/Controller/PledgePaymentMethodsViewController.swift b/Kickstarter-iOS/Features/PledgePaymentMethods/Controller/PledgePaymentMethodsViewController.swift index 879401bb31..0f202e67cc 100644 --- a/Kickstarter-iOS/Features/PledgePaymentMethods/Controller/PledgePaymentMethodsViewController.swift +++ b/Kickstarter-iOS/Features/PledgePaymentMethods/Controller/PledgePaymentMethodsViewController.swift @@ -160,7 +160,8 @@ final class PledgePaymentMethodsViewController: UIViewController { assert( topViewController is PledgeViewController || topViewController is NoShippingPledgeViewController || - topViewController is PostCampaignCheckoutViewController, + topViewController is PostCampaignCheckoutViewController || + topViewController is NoShippingPostCampaignCheckoutViewController, "PledgePaymentMethodsViewController is only intended to be presented as part of a pledge flow." )