From 57befa124cf6d11d3d60f6ceee4109ad0bff07c0 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 15 May 2026 13:56:22 -0400 Subject: [PATCH] TypeScript narrowing issue --- .../dashboard/src/app/(dashboard)/dashboard/fleet/[id]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dashboard/src/app/(dashboard)/dashboard/fleet/[id]/page.tsx b/apps/dashboard/src/app/(dashboard)/dashboard/fleet/[id]/page.tsx index 8053a61..da55b3e 100644 --- a/apps/dashboard/src/app/(dashboard)/dashboard/fleet/[id]/page.tsx +++ b/apps/dashboard/src/app/(dashboard)/dashboard/fleet/[id]/page.tsx @@ -107,7 +107,7 @@ function serviceStatus(log: MaintenanceLog | undefined, currentMileage: number | if (log.nextDueMileage != null && currentMileage != null) { const kmLeft = log.nextDueMileage - currentMileage if (kmLeft <= 0) return 'overdue' - if (kmLeft <= 500 && worstLevel !== 'overdue') worstLevel = 'due-soon' + if (kmLeft <= 500) worstLevel = 'due-soon' } return worstLevel