fix: pre-progress bar fixes

This commit is contained in:
Derrick Hammer 2024-03-28 20:04:53 -04:00
parent 377976b8b2
commit 64b1a31a8f
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 3 deletions

View File

@ -350,10 +350,11 @@ const UploadFileItem = ({
</div>
) : null}
{file.progress?.preprocess || true ? (
{file.progress?.preprocess ? (
<div>
<p className="text-sm text-primary-2 ml-2">{file.progress?.preprocess?.value ?? "Processing..."}</p>
<Progress max={100} value={file.progress?.preprocess?.value ?? 0} className="mt-2" />
<p className="text-sm text-primary-2 ml-2">{file.progress?.preprocess?.message ?? "Processing..."}</p>
<Progress max={100} value={
file.progress?.preprocess?.value ?? 0} className="mt-2" />
</div>
) : null}
{file.progress?.uploadStarted && !file.progress.uploadComplete ? (