Skip to content

Commit 183ec65

Browse files
committed
Remove uneeded logic
1 parent 94460b9 commit 183ec65

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

WooCommerce/Classes/ViewRelated/Dashboard/Settings/In-Person Payments/CardPresentPaymentsOnboardingUseCase.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -83,22 +83,6 @@ final class CardPresentPaymentsOnboardingUseCase: CardPresentPaymentsOnboardingU
8383
return
8484
}
8585

86-
if wcPayPlugin?.active ?? false {
87-
let useWCPayAction = CardPresentPaymentAction.useWCPay // TODO asynchronicity / ordering of actions?
88-
stores.dispatch(useWCPayAction)
89-
} else {
90-
// If the WCPayPlugin is not active and the Stripe IPP experiment is not enabled bail now.
91-
guard stripeGatewayIPPEnabled == true else {
92-
self.updateState()
93-
return
94-
}
95-
}
96-
97-
if stripePlugin?.active ?? false {
98-
let useStripeAction = CardPresentPaymentAction.useStripe // TODO asynchronicity / ordering of actions?
99-
stores.dispatch(useStripeAction)
100-
}
101-
10286
let paymentGatewayAccountsAction = CardPresentPaymentAction.loadAccounts(siteID: siteID) { [weak self] result in
10387
self?.updateState()
10488
}

0 commit comments

Comments
 (0)