fix(ui): fix model install progress display

This commit is contained in:
psychedelicious 2024-03-19 12:10:06 +11:00
parent 609c2c0abf
commit 97f16b2b7e

View File

@ -139,7 +139,7 @@ type TooltipLabelProps = {
const TooltipLabel = ({ name, source, installJob }: TooltipLabelProps) => {
const progressString = useMemo(() => {
if (installJob.status === 'downloading' || installJob.bytes === undefined || installJob.total_bytes === undefined) {
if (installJob.status !== 'downloading' || installJob.bytes === undefined || installJob.total_bytes === undefined) {
return '';
}
return `${formatBytes(installJob.bytes)} / ${formatBytes(installJob.total_bytes)}`;