Solución: Redondear decimales en horarios, activar apertura automática de ETACard y asegurar visibilidad de paradas
This commit is contained in:
@ -168,7 +168,7 @@ export function useETA() {
|
||||
const totalMinutes = Math.round(minutos);
|
||||
const m = ((totalMinutes % 1440) + 1440) % 1440; // normalizar 0-1439
|
||||
const h = Math.floor(m / 60);
|
||||
const min = m % 60;
|
||||
const min = Math.floor(m % 60);
|
||||
return `${String(h).padStart(2, '0')}:${String(min).padStart(2, '0')}`;
|
||||
}
|
||||
|
||||
|
||||
@ -427,6 +427,7 @@ watch(() => routeStore.selectedRouteId, (routeId) => {
|
||||
// Iniciamos dibujo y búsqueda de disponibilidad en paralelo
|
||||
updateMapMarkers(false);
|
||||
updateActiveUnits();
|
||||
showETACard.value = true; // RESTORED: Abrir automáticamente al seleccionar ruta
|
||||
} else {
|
||||
clearMapMarkers();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user