Solución: Redondear decimales en horarios, activar apertura automática de ETACard y asegurar visibilidad de paradas

This commit is contained in:
2026-03-02 12:47:44 -05:00
parent 704d3e2e60
commit 0b8c5a1075
2 changed files with 2 additions and 1 deletions

View File

@ -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')}`;
}

View File

@ -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();
}