File upload is done at 100

This commit is contained in:
jwu-fisker
2021-01-07 16:22:13 -08:00
parent 30408840e9
commit 8546234b4c
2 changed files with 2 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ const ModalProgressBar = ({ onCancel, uploading, progress, status }) => {
{status && <p>{status}</p>}
<LinearProgress variant="determinate" value={progress} />
<Button onClick={onClickCancel}>
{ progress < 101 ? "Cancel" : "Done" }
{ progress < 100 ? "Cancel" : "Done" }
</Button>
</div>
</Modal>