Skip to content

Commit 49a2e5d

Browse files
committed
Only check isJetpackConnected behind JCP feature flag.
1 parent 2a3a0bb commit 49a2e5d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

WooCommerce/Classes/Extensions/WordPressComSiteInfo+Woo.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ extension WordPressComSiteInfo {
55
/// Encapsulates the rules that declare a WordPress site as having a valid
66
/// Jetpack installation
77
var hasValidJetpack: Bool {
8-
isJetpackConnected
8+
if ServiceLocator.featureFlagService.isFeatureFlagEnabled(.jetpackConnectionPackageSupport) {
9+
return isJetpackConnected
10+
} else {
11+
return hasJetpack &&
12+
isJetpackConnected &&
13+
isJetpackActive
14+
}
915
}
1016
}

0 commit comments

Comments
 (0)