UI: Don't render ransomware encryption table if no files were encrypted

This commit is contained in:
Mike Salvatore 2021-07-26 10:04:43 -04:00
parent 09d7630a47
commit 5531c30d30
1 changed files with 2 additions and 2 deletions

View File

@ -36,8 +36,8 @@ function AttackSection(): ReactElement {
function getBody(tableData): ReactFragment {
return (
<>
<p>Infection Monkey has encrypted <strong>{tableData.length} files</strong> on your network:</p>
<FileEncryptionTable tableData={tableData} />
<p>Infection Monkey has encrypted <strong>{tableData.length} files</strong> on your network.</p>
{(tableData.length > 0) && <FileEncryptionTable tableData={tableData} />}
</>
);
}