Skip to content

Commit 419896c

Browse files
committed
Clarify why site plan is not synched when authenticated with WPOrg
1 parent ce0ef50 commit 419896c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WooCommerce/Classes/Yosemite/DefaultStoresManager.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,8 @@ private extension DefaultStoresManager {
352352
dispatch(productSettingsAction)
353353

354354
/// skips synchronizing site plan if logged in with WPOrg credentials
355-
if siteID != WooConstants.placeholderStoreID {
355+
/// because this requires a WPCom endpoint.
356+
if isAuthenticatedWithoutWPCom {
356357
group.enter()
357358
let sitePlanAction = AccountAction.synchronizeSitePlan(siteID: siteID) { result in
358359
if case let .failure(error) = result {

0 commit comments

Comments
 (0)