Skip to content

Commit

Permalink
Use correct statsUnitTypeKey when setting selected periodUnit
Browse files Browse the repository at this point in the history
  • Loading branch information
staskus committed Feb 27, 2024
1 parent ab0e2b7 commit b58d8ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit b58d8ce

Please sign in to comment.