[iOS] Check for 'XXX' currency code

https://jira.mail.ru/browse/MAPSME-14486
This commit is contained in:
Alexander Boriskov 2020-08-06 14:03:29 +03:00 committed by Aleksey Belousov
parent 6d75eabaee
commit 80b0ce2614

View file

@ -286,7 +286,7 @@ static PlacePageRoadType convertRoadType(RoadWarningMarkType roadType) {
}
NSString * currencyCode = [NSLocale.currentLocale currencyCode];
if (currencyCode == nil || currencyCode.length == 0) {
if (currencyCode == nil || currencyCode.length == 0 || [currencyCode isEqualToString:@"XXX"]) {
currencyCode = [[[NSLocale alloc] initWithLocaleIdentifier:@"en_US"] currencyCode];
}
std::string currency = [currencyCode UTF8String];