diff --git a/WordPress/Classes/ViewRelated/Stats/SiteStatsDashboardViewController.swift b/WordPress/Classes/ViewRelated/Stats/SiteStatsDashboardViewController.swift index 079e24dfc021..372aa108c538 100644 --- a/WordPress/Classes/ViewRelated/Stats/SiteStatsDashboardViewController.swift +++ b/WordPress/Classes/ViewRelated/Stats/SiteStatsDashboardViewController.swift @@ -341,7 +341,7 @@ struct SiteStatsDashboardPreferences { static func setSelected(periodUnit: StatsPeriodUnit) { guard let siteID = SiteStatsInformation.sharedInstance.siteID?.intValue else { return } - let unitKey = lastSelectedStatsTabTypeKey(forSiteID: siteID) + let unitKey = lastSelectedStatsUnitTypeKey(forSiteID: siteID) UserPersistentStoreFactory.instance().set(periodUnit.rawValue, forKey: unitKey) }