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 cb3ee6a commit 031c74cCopy full SHA for 031c74c
WooCommerce/Classes/Authentication/Navigation Exceptions/JetpackErrorViewModel.swift
@@ -8,9 +8,11 @@ import WordPressUI
8
/// an error when Jetpack is not installed or is not connected
9
struct JetpackErrorViewModel: ULErrorViewModel {
10
private let siteURL: String
11
+ private let analytics: Analytics
12
- init(siteURL: String?) {
13
+ init(siteURL: String?, analytics: Analytics = ServiceLocator.analytics) {
14
self.siteURL = siteURL ?? Localization.yourSite
15
+ self.analytics = analytics
16
}
17
18
// MARK: - Data and configuration
0 commit comments