From 5531c30d30ee81b6b785ddfdc6e4f92ecaa67e4a Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 26 Jul 2021 10:04:43 -0400 Subject: [PATCH] UI: Don't render ransomware encryption table if no files were encrypted --- .../components/report-components/ransomware/AttackSection.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/ui/src/components/report-components/ransomware/AttackSection.tsx b/monkey/monkey_island/cc/ui/src/components/report-components/ransomware/AttackSection.tsx index 53f2e6a15..69dc76c08 100644 --- a/monkey/monkey_island/cc/ui/src/components/report-components/ransomware/AttackSection.tsx +++ b/monkey/monkey_island/cc/ui/src/components/report-components/ransomware/AttackSection.tsx @@ -36,8 +36,8 @@ function AttackSection(): ReactElement { function getBody(tableData): ReactFragment { return ( <> -

Infection Monkey has encrypted {tableData.length} files on your network:

- +

Infection Monkey has encrypted {tableData.length} files on your network.

+ {(tableData.length > 0) && } ); }