From a3de2e73dde5702c45438b0127a58a4f9a615d09 Mon Sep 17 00:00:00 2001 From: Arsentiy Milchakov Date: Thu, 27 Sep 2018 12:38:50 +0300 Subject: [PATCH] [rutaxi] review fixes --- .../Views/RoutePreview/RoutePreviewTaxiCell.swift | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/iphone/Maps/Classes/CustomViews/NavigationDashboard/Views/RoutePreview/RoutePreviewTaxiCell.swift b/iphone/Maps/Classes/CustomViews/NavigationDashboard/Views/RoutePreview/RoutePreviewTaxiCell.swift index 980cc9079b..3ab6ab16be 100644 --- a/iphone/Maps/Classes/CustomViews/NavigationDashboard/Views/RoutePreview/RoutePreviewTaxiCell.swift +++ b/iphone/Maps/Classes/CustomViews/NavigationDashboard/Views/RoutePreview/RoutePreviewTaxiCell.swift @@ -58,14 +58,11 @@ final class RoutePreviewTaxiCell: UICollectionViewCell { let timeString = { () -> String in var timeValue = DateComponentsFormatter.etaString(from: TimeInterval(eta)!)! - switch type { - case .taxi: break - case .uber: break - case .yandex: break - case .maxim: break - case .rutaxi: - timeValue = String(coreFormat: L("place_page_starting_from"), arguments: [timeValue]) + + if type == .rutaxi { + timeValue = String(coreFormat: L("place_page_starting_from"), arguments: [timeValue]); } + return String(coreFormat: L("taxi_wait"), arguments: [timeValue]) }