Table not shown if no passwords were stolen

This commit is contained in:
VakarisZ 2019-06-07 17:00:08 +03:00
parent 7e059cbf62
commit c99ceff21d
1 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,9 @@ class T1003 extends React.Component {
<div>
<div>{this.props.data.message}</div>
<br/>
<StolenPasswordsComponent data={this.props.reportData.glance.stolen_creds.concat(this.props.reportData.glance.ssh_keys)}/>
{this.props.data.status === 'USED' ?
<StolenPasswordsComponent data={this.props.reportData.glance.stolen_creds.concat(this.props.reportData.glance.ssh_keys)}/>
: ""}
</div>
);
}