From 0c286a3419b91556395406869e684acd8cc759c8 Mon Sep 17 00:00:00 2001
From: Itay Mizeretz
Date: Tue, 19 Dec 2017 19:02:10 +0200
Subject: [PATCH] Remove statement if there were no infections
---
.../cc/ui/src/components/pages/ReportPage.js | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/monkey_island/cc/ui/src/components/pages/ReportPage.js b/monkey_island/cc/ui/src/components/pages/ReportPage.js
index 50e0921cf..d9f3255e2 100644
--- a/monkey_island/cc/ui/src/components/pages/ReportPage.js
+++ b/monkey_island/cc/ui/src/components/pages/ReportPage.js
@@ -582,10 +582,16 @@ class ReportPageComponent extends React.Component {
className="label label-warning">{this.state.report.glance.scanned.length} machines and
successfully breached {this.state.report.glance.exploited.length} of them.
-
- In addition, while attempting to exploit additional hosts , security software installed in the
- network should have picked up the attack attempts and logged them.
+ {
+ this.state.report.glance.exploited.length > 0 ?
+
+ In addition, while attempting to exploit additional hosts , security software installed in the
+ network should have picked up the attack attempts and logged them.
+
+ :
+ ''
+ }