From 28530430ba441087d8c6dbfde7455c9eb62efcaa Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Bajpai Date: Mon, 3 Aug 2026 13:58:02 +0530 Subject: [PATCH] fix: resolve 3 bugs in SecuScan --- frontend/src/pages/Dashboard.tsx | 2 +- frontend/src/pages/Findings.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/Dashboard.tsx b/frontend/src/pages/Dashboard.tsx index 5ac79810d..754c570c2 100644 --- a/frontend/src/pages/Dashboard.tsx +++ b/frontend/src/pages/Dashboard.tsx @@ -120,7 +120,7 @@ const emptySummary: Summary = { function formatDuration(seconds?: number | null) { - if (seconds == null || !Number.isFinite(seconds) || seconds <= 0) return 'N/A' + if (seconds === null || !Number.isFinite(seconds) || seconds <= 0) return 'N/A' if (seconds < 60) return `${Math.round(seconds)}s` const mins = Math.floor(seconds / 60) const secs = Math.round(seconds % 60) diff --git a/frontend/src/pages/Findings.tsx b/frontend/src/pages/Findings.tsx index 1f43fadaa..d5a816693 100644 --- a/frontend/src/pages/Findings.tsx +++ b/frontend/src/pages/Findings.tsx @@ -298,7 +298,7 @@ export default function Findings() { for (const f of enrichedFindings) { if (f.target) seen.add(f.target) } - return Array.from(seen).sort() + return Array.from(seen).sort((a, b) => a - b) }, [enrichedFindings]) // plugin_id values serve as the "scanner/tool" filter per issue #43