From dea1064a4b90c3210abf5d841c21a30825c81b4e Mon Sep 17 00:00:00 2001 From: Hassaan El-Garem Date: Wed, 27 Apr 2022 01:32:28 +0200 Subject: [PATCH] Fix: tour assignment for self-hosted sites Only assign new tours if the feature flag is enabled --- .../ViewRelated/NUX/WordPressAuthenticationManager.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WordPress/Classes/ViewRelated/NUX/WordPressAuthenticationManager.swift b/WordPress/Classes/ViewRelated/NUX/WordPressAuthenticationManager.swift index 06e7753b4a4a..4993f7d85c02 100644 --- a/WordPress/Classes/ViewRelated/NUX/WordPressAuthenticationManager.swift +++ b/WordPress/Classes/ViewRelated/NUX/WordPressAuthenticationManager.swift @@ -335,7 +335,8 @@ extension WordPressAuthenticationManager: WordPressAuthenticatorDelegate { // If adding a self-hosted site, skip the Epilogue if let wporg = credentials.wporg, let blog = Blog.lookup(username: wporg.username, xmlrpc: wporg.xmlrpc, in: ContextManager.shared.mainContext) { - presentQuickStartPrompt(for: blog, in: navigationController, onDismiss: onDismissQuickStartPromptForExistingSiteHandler) + let onDismissHandler = FeatureFlag.quickStartForExistingUsers.enabled ? onDismissQuickStartPromptForExistingSiteHandler : onDismissQuickStartPromptForNewSiteHandler + presentQuickStartPrompt(for: blog, in: navigationController, onDismiss: onDismissHandler) return }