diff --git a/frontend/src/composables/useETA.ts b/frontend/src/composables/useETA.ts index b71e6b2..83c0580 100644 --- a/frontend/src/composables/useETA.ts +++ b/frontend/src/composables/useETA.ts @@ -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')}`; } diff --git a/frontend/src/views/MapView.vue b/frontend/src/views/MapView.vue index 401f1bb..7276fd6 100644 --- a/frontend/src/views/MapView.vue +++ b/frontend/src/views/MapView.vue @@ -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(); }