Skip to content

Commit fbf1ebe

Browse files
committed
Always hide visitors stats for time range today
1 parent 516c87b commit fbf1ebe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

WooCommerce/Classes/ViewRelated/Dashboard/Stats v4/StoreStatsV4PeriodViewController.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,11 @@ private extension StoreStatsV4PeriodViewController {
447447
//
448448
extension StoreStatsV4PeriodViewController {
449449
func updateSiteVisitStats(mode: SiteVisitStatsMode) {
450+
// Hides site visit stats for "today"
451+
guard timeRange != .today else {
452+
visitorsStackView?.isHidden = true
453+
return
454+
}
450455
visitorsStackView?.isHidden = (mode == .hidden)
451456
}
452457
}

0 commit comments

Comments
 (0)