Skip to content

Commit 55e3b72

Browse files
authored
Use correct statsUnitTypeKey when setting selected periodUnit
1 parent d94ba7a commit 55e3b72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPress/Classes/ViewRelated/Stats/SiteStatsDashboardViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ struct SiteStatsDashboardPreferences {
338338
static func setSelected(periodUnit: StatsPeriodUnit) {
339339
guard let siteID = SiteStatsInformation.sharedInstance.siteID?.intValue else { return }
340340

341-
let unitKey = lastSelectedStatsTabTypeKey(forSiteID: siteID)
341+
let unitKey = lastSelectedStatsUnitTypeKey(forSiteID: siteID)
342342
UserPersistentStoreFactory.instance().set(periodUnit.rawValue, forKey: unitKey)
343343
}
344344

0 commit comments

Comments
 (0)