diff --git a/monkey/monkey_island/cc/ui/src/components/report-components/AttackReport.js b/monkey/monkey_island/cc/ui/src/components/report-components/AttackReport.js index a5476f32d..dc128202e 100644 --- a/monkey/monkey_island/cc/ui/src/components/report-components/AttackReport.js +++ b/monkey/monkey_island/cc/ui/src/components/report-components/AttackReport.js @@ -95,12 +95,16 @@ class AttackReport extends React.Component { generateReportContent() { return ( -
- -
+

This report shows information about - + techniques used by Infection Monkey.

{this.renderLegend()} @@ -144,11 +148,18 @@ class AttackReport extends React.Component { } render() { + let content = {}; if (typeof this.state.schema === 'undefined' || typeof this.state.techniques === 'undefined') { - return (); + content = ; } else { - return (
{this.generateReportContent()}
); + content =
{this.generateReportContent()}
; } + return ( +
+ +
+ {content} +
) } }