Floor progress percentage
This commit is contained in:
parent
fdda72854a
commit
25ca270ffb
|
@ -53,7 +53,7 @@ class File extends Component {
|
|||
color={file.progress != 1.0 ? "success" : "primary"}
|
||||
>
|
||||
{file.progress === 1.0 ?
|
||||
"done" : `${(file.progress * 100).toFixed(0)}%`}
|
||||
"done" : `${Math.floor(file.progress * 100)}%`}
|
||||
</Progress>
|
||||
<div className="path" title={file.path}>
|
||||
{file.progress === 1.0 ?
|
||||
|
|
Loading…
Reference in New Issue
Block a user