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 ba7449c commit 3a70c3aCopy full SHA for 3a70c3a
WooCommerce/Classes/ViewRelated/Dashboard/Analytics Hub/Time Range/AnalyticsHubTimeRangeSelection.swift
@@ -104,16 +104,16 @@ extension AnalyticsHubTimeRangeSelection {
104
}
105
106
107
- static func from(_ statsTimeRange: StatsTimeRangeV4) -> SelectionType {
+ init(_ statsTimeRange: StatsTimeRangeV4) {
108
switch statsTimeRange {
109
case .today:
110
- return .today
+ self = .today
111
case .thisWeek:
112
- return .weekToDate
+ self = .weekToDate
113
case .thisMonth:
114
- return .monthToDate
+ self = .monthToDate
115
case .thisYear:
116
- return .yearToDate
+ self = .yearToDate
117
118
119
0 commit comments