From 09e04a376331392f4fa0faadd7e0a3e491c41bba Mon Sep 17 00:00:00 2001 From: Itay Mizeretz <itay.mizeretz@guardicore.com> Date: Tue, 12 Dec 2017 15:43:47 +0200 Subject: [PATCH] Fixed condition for showing suggestion to improve monkey success rate --- monkey_island/cc/ui/src/components/pages/ReportPage.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/monkey_island/cc/ui/src/components/pages/ReportPage.js b/monkey_island/cc/ui/src/components/pages/ReportPage.js index 2a12587f6..82787f5f0 100644 --- a/monkey_island/cc/ui/src/components/pages/ReportPage.js +++ b/monkey_island/cc/ui/src/components/pages/ReportPage.js @@ -396,12 +396,13 @@ class ReportPageComponent extends React.Component { </p>) } { - this.didMonkeyFindIssues() ? + this.state.report.glance.exploited.length > 0 ? '' : <p className="alert alert-info"> <i className="glyphicon glyphicon-info-sign" style={{'marginRight': '5px'}}/> - To improve the monkey's detection rates, try adding users and passwords and enable the "Local network + To improve the monkey's detection rates, try adding users and passwords and enable the "Local + network scan" config value under <b>Basic - Network</b>. </p> }