We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a22938 commit 0b10bb2Copy full SHA for 0b10bb2
WooCommerce/Classes/ViewRelated/Dashboard/Analytics Hub/AnalyticsHubViewModel.swift
@@ -261,8 +261,8 @@ private extension AnalyticsHubViewModel {
261
self.itemsSoldCard = AnalyticsHubViewModel.productsItemsSoldCard(itemsSoldStats: itemsSoldStats)
262
}.store(in: &subscriptions)
263
264
- Publishers.CombineLatest($currentOrderStats, $siteStats)
265
- .sink { [weak self] currentOrderStats, siteStats in
+ $currentOrderStats.zip($siteStats)
+ .sink { [weak self] (currentOrderStats, siteStats) in
266
guard let self else { return }
267
268
self.sessionsCard = AnalyticsHubViewModel.sessionsCard(currentPeriodStats: currentOrderStats, siteStats: siteStats)
0 commit comments