Skip to content

Commit 9a518d5

Browse files
committed
Rename displayAuthenticator to displayAuthenticatorWithOnboardingIfNeeded for clarity.
1 parent 3f712e3 commit 9a518d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

WooCommerce/Classes/ViewRelated/AppCoordinator.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ final class AppCoordinator {
6868
// More details about the UI states: https://github.com/woocommerce/woocommerce-ios/pull/3498
6969
switch (isLoggedIn, needsDefaultStore) {
7070
case (false, true), (false, false):
71-
self.displayAuthenticator()
71+
self.displayAuthenticatorWithOnboardingIfNeeded()
7272
case (true, true):
7373
self.displayLoggedInStateWithoutDefaultStore()
7474
case (true, false):
@@ -126,7 +126,7 @@ private extension AppCoordinator {
126126

127127
/// Displays the WordPress.com Authentication UI.
128128
///
129-
func displayAuthenticator() {
129+
func displayAuthenticatorWithOnboardingIfNeeded() {
130130
if canPresentLoginOnboarding() {
131131
// Sets a placeholder view controller as the window's root view as it is required
132132
// at the end of app launch.
@@ -245,7 +245,7 @@ private extension AppCoordinator {
245245
storePickerCoordinator?.onDismiss = { [weak self] in
246246
guard let self = self else { return }
247247
if self.isLoggedIn == false {
248-
self.displayAuthenticator()
248+
self.displayAuthenticatorWithOnboardingIfNeeded()
249249
}
250250
}
251251
}

0 commit comments

Comments
 (0)