Skip to content

Commit

Permalink
fix(StopDetailsViewModel): Reliably merge in new predictions
Browse files Browse the repository at this point in the history
  • Loading branch information
KaylaBrady committed Jan 21, 2025
1 parent 702b21d commit c333674
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ class StopDetailsViewModel(
StopData(
it.stopId,
it.schedules,
it.predictionsByStop
?: PredictionsByStopJoinResponse(
(it.predictionsByStop
?: PredictionsByStopJoinResponse(
mapOf(it.stopId to message.predictions),
message.trips,
message.vehicles
)
.mergePredictions(message)
))
.mergePredictions(message)
)
}
}
Expand Down

0 comments on commit c333674

Please sign in to comment.