Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/pages/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Findings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading