Skip to content

Commit 74136a2

Browse files
committed
Use the syncingCoordinator properties instead of the constants
1 parent 16691dd commit 74136a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WooCommerce/Classes/ViewRelated/Products/Variations/ProductVariationsViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ private extension ProductVariationsViewController {
697697
case .noResultsPlaceholder:
698698
break
699699
case .syncing(let pageNumber):
700-
if pageNumber == SyncingCoordinator.Defaults.pageFirstIndex {
700+
if pageNumber == syncingCoordinator.pageFirstIndex {
701701
displayPlaceholderProducts()
702702
} else {
703703
ensureFooterSpinnerIsStarted()
@@ -750,7 +750,7 @@ extension ProductVariationsViewController {
750750
return false
751751
}
752752

753-
return highestPageBeingSynced * SyncingCoordinator.Defaults.pageSize > resultsController.numberOfObjects
753+
return highestPageBeingSynced * syncingCoordinator.pageSize > resultsController.numberOfObjects
754754
}
755755

756756
/// Stops animating the Footer Spinner.

0 commit comments

Comments
 (0)