Skip to content

Commit 752db07

Browse files
committed
fix: 잘못 작성한 로직 수정
1 parent 9cf080d commit 752db07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

presentation/src/main/java/com/stop/ui/mission/MissionViewModel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ class MissionViewModel @Inject constructor(
143143
val temporalIndex = busVehicleIds.size / 2
144144
busVehicleIds = listOf(busVehicleIds[temporalIndex])
145145

146-
while (busVehicleIds.isEmpty()) {
147-
val busCurrentInformation = getBusNowLocationUseCase(lastTimeValue, busVehicleIds)
146+
while (busVehicleIds.isNotEmpty()) {
147+
val busCurrentInformation = getBusNowLocationUseCase(transportLastTime, busVehicleIds)
148148
this@MissionViewModel._busNowLocationInfo.value = busCurrentInformation
149149

150150
busVehicleIds = busVehicleIds.foldIndexed(listOf()) { index, ids, id ->

0 commit comments

Comments
 (0)