UI: Show ransomware encrypted file count only in red or black

This commit is contained in:
Mike Salvatore 2021-07-14 14:55:16 -04:00
parent e241d46263
commit 7ae46339e0
1 changed files with 1 additions and 5 deletions

View File

@ -54,13 +54,9 @@ function renderFileEncryptionStats(successful: number, total: number) {
let textClassName = ''
if(successful > 0) {
if (successful === total) {
textClassName = 'text-danger'
} else {
textClassName = 'text-warning'
}
} else {
textClassName = 'text-success'
textClassName = 'text-dark'
}
return (<p className={textClassName}>{successful} out of {total}</p>);