forked from p15670423/monkey
UI: Don't render ransomware encryption table if no files were encrypted
This commit is contained in:
parent
09d7630a47
commit
5531c30d30
|
@ -36,8 +36,8 @@ function AttackSection(): ReactElement {
|
||||||
function getBody(tableData): ReactFragment {
|
function getBody(tableData): ReactFragment {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<p>Infection Monkey has encrypted <strong>{tableData.length} files</strong> on your network:</p>
|
<p>Infection Monkey has encrypted <strong>{tableData.length} files</strong> on your network.</p>
|
||||||
<FileEncryptionTable tableData={tableData} />
|
{(tableData.length > 0) && <FileEncryptionTable tableData={tableData} />}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue