From 7ac25b31ff43214d80630c455e92d5314d4cc5eb Mon Sep 17 00:00:00 2001 From: Paolo Barbolini Date: Thu, 25 Nov 2021 10:46:51 +0100 Subject: [PATCH] Fix displaying patched versions (#127) --- src/server/views/html/status.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/views/html/status.rs b/src/server/views/html/status.rs index 7c974ef..c70d18a 100644 --- a/src/server/views/html/status.rs +++ b/src/server/views/html/status.rs @@ -287,7 +287,7 @@ fn vulnerability_list(analysis_outcome: &AnalyzeDependenciesOutcome) -> Markup { div class="level-item has-text-centered" { div { p class="heading" { "Patched" } - @if vuln.versions.unaffected().is_empty() { + @if vuln.versions.patched().is_empty() { p class="has-text-grey" { "None"} } @else { @for item in vuln.versions.patched() {