[ios] fix: estimates when the following type is changing

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
Kiryl Kaveryn 2024-03-25 17:39:13 +04:00 committed by Alexander Borsuk
parent bfc8859145
commit eb61c276d0

View file

@ -237,6 +237,9 @@ NSArray<MWMRouterTransitStepInfo *> *buildRouteTransitSteps(NSArray<MWMRoutePoin
- (void)updateTransitInfo:(TransitRouteInfo const &)info {
if (auto entity = self.entity) {
entity.timeToTarget = info.m_totalTimeInSec;
entity.targetDistance = @(info.m_totalPedestrianDistanceStr.c_str());
entity.targetUnits = @(info.m_totalPedestrianUnitsSuffix.c_str());
entity.isValid = YES;
entity.isWalk = YES;
entity.showEta = YES;