Commit ec8f9db9 by Demid Merzlyakov

Fix Crashlytics crash in Onboarding.

parent 9dea0504
...@@ -81,6 +81,7 @@ class TodayViewModel: ViewModelProtocol { ...@@ -81,6 +81,7 @@ class TodayViewModel: ViewModelProtocol {
public func showOnboardingOrPrivacyNoticeIfNeeded() { public func showOnboardingOrPrivacyNoticeIfNeeded() {
locationManager.doAfterLocationLoad { [weak self] (locations) in locationManager.doAfterLocationLoad { [weak self] (locations) in
guard let self = self else { return } guard let self = self else { return }
onMain {
if !self.locationManager.hasLocations { if !self.locationManager.hasLocations {
self.delegate?.showOnboarding(viewModel: self) self.delegate?.showOnboarding(viewModel: self)
} }
...@@ -97,6 +98,7 @@ class TodayViewModel: ViewModelProtocol { ...@@ -97,6 +98,7 @@ class TodayViewModel: ViewModelProtocol {
} }
} }
} }
}
private func onboardingFlowCompleted() { private func onboardingFlowCompleted() {
self.initializeAllAdsIfNeeded() self.initializeAllAdsIfNeeded()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment