Skip to content

Commit e72c90f

Browse files
committed
Rename function
1 parent 77e13e3 commit e72c90f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

WooCommerce/Classes/ViewRelated/Orders/OrdersRootViewController.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ final class OrdersRootViewController: UIViewController {
6464

6565
override func viewWillAppear(_ animated: Bool) {
6666
// Needed in ViewWillAppear because this View Controller is never recreated.
67-
fetchSimplePaymentsExperimentalToggleAndConfigureNavigationButtons()
67+
fetchExperimentalTogglesAndConfigureNavigationButtons()
6868
}
6969

7070
override func viewDidLayoutSubviews() {
@@ -154,15 +154,15 @@ private extension OrdersRootViewController {
154154
inPersonPaymentsUseCase.$state
155155
.removeDuplicates()
156156
.sink { [weak self] _ in
157-
self?.fetchSimplePaymentsExperimentalToggleAndConfigureNavigationButtons()
157+
self?.fetchExperimentalTogglesAndConfigureNavigationButtons()
158158
}
159159
.store(in: &subscriptions)
160160
inPersonPaymentsUseCase.refresh()
161161
}
162162

163-
/// Fetches the latest value of the SimplePayments experimental feature toggle and re configures navigation buttons.
163+
/// Fetches the latest values of order-related experimental feature toggles and re configures navigation buttons.
164164
///
165-
func fetchSimplePaymentsExperimentalToggleAndConfigureNavigationButtons() {
165+
func fetchExperimentalTogglesAndConfigureNavigationButtons() {
166166
let group = DispatchGroup()
167167

168168
var isSimplePaymentsEnabled = false

0 commit comments

Comments
 (0)