Commit 943172e3 by Demid Merzlyakov

IOS-257: Fix the max locations count message.

parent c1a15102
......@@ -196,7 +196,7 @@ public class LocationsViewModel {
//MARK:- City CUD methods
func add(city: PartialLocation) {
guard locationManager.locations.count < locationManager.maxLocationsCount else {
self.delegate?.viewModelError(model: self, title: nil, message: "search.error.maxLocationWarning".localized())
self.delegate?.viewModelError(model: self, title: nil, message: String(format:"search.error.maxLocationWarning".localized(), "\(locationManager.maxLocationsCount)"))
return
}
locationManager.addIfNeeded(partialLocation: city, selectLocation: true) { success in
......
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