diff --git a/iphone/Maps/UI/BottomMenu/Menu/BottomMenuInteractor.swift b/iphone/Maps/UI/BottomMenu/Menu/BottomMenuInteractor.swift index 2d502d5e4..99a260b37 100644 --- a/iphone/Maps/UI/BottomMenu/Menu/BottomMenuInteractor.swift +++ b/iphone/Maps/UI/BottomMenu/Menu/BottomMenuInteractor.swift @@ -77,14 +77,15 @@ extension BottomMenuInteractor: BottomMenuInteractorProtocol { func toggleTrackRecording() { close() + let mapViewController = MapViewController.shared()! switch trackRecorder.recordingState { case .active: - break + mapViewController.showTrackRecordingPlacePage() case .inactive: trackRecorder.start { result in switch result { case .success: - MapViewController.shared()?.showTrackRecordingPlacePage() + mapViewController.showTrackRecordingPlacePage() case .failure: break }