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 ff2b852 commit ae63864Copy full SHA for ae63864
WooCommerce/Classes/ViewRelated/Dashboard/Analytics Hub/AnalyticsTimeRangeCard.swift
@@ -99,7 +99,14 @@ struct AnalyticsTimeRangeCard: View {
99
private func internalSelectionBinding() -> Binding<AnalyticsHubTimeRangeSelection.SelectionType> {
100
.init(
101
get: {
102
- selectionType
+ // Temporary
103
+ switch selectionType {
104
+ // If a `custom` case is set return one with nil values so the Custom row is selected
105
+ case .custom:
106
+ return .custom(start: nil, end: nil)
107
+ default:
108
+ return selectionType
109
+ }
110
},
111
set: { newValue in
112
switch newValue {
0 commit comments