diff options
author | Aleksey Belouosv <aleksey@maps.me> | 2019-05-14 19:37:56 +0300 |
---|---|---|
committer | Zoia <niakris90@gmail.com> | 2019-05-14 19:40:37 +0300 |
commit | ffaabf29997994cb3f1213a30df1f861e5200fd9 (patch) | |
tree | 7465955dfb2c26a9207996de29f6eed4a7d57546 | |
parent | 672c2bf68c0aebd8c9bc04b1452043669b510129 (diff) |
[iOS] we don't want nil here, use empty string insteadios-9.1.1-0
-rw-r--r-- | iphone/Maps/UI/PlacePage/UGCViewModel/MWMUGCViewModel.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/iphone/Maps/UI/PlacePage/UGCViewModel/MWMUGCViewModel.mm b/iphone/Maps/UI/PlacePage/UGCViewModel/MWMUGCViewModel.mm index 1660804ae7..2fd205c552 100644 --- a/iphone/Maps/UI/PlacePage/UGCViewModel/MWMUGCViewModel.mm +++ b/iphone/Maps/UI/PlacePage/UGCViewModel/MWMUGCViewModel.mm @@ -22,8 +22,9 @@ NSArray<MWMUGCRatingStars *> * starsRatings(ugc::Ratings const & ratings) MWMUGCRatingValueType * ratingValueType(float rating) { + NSString *value = @(rating::GetRatingFormatted(rating).c_str()); return [[MWMUGCRatingValueType alloc] - initWithValue:@(rating::GetRatingFormatted(rating).c_str()) + initWithValue:value ?: @"" type:[MWMPlacePageData ratingValueType:rating::GetImpress(rating)]]; } } // namespace |