mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): fix model install progress display
This commit is contained in:
parent
609c2c0abf
commit
97f16b2b7e
@ -139,7 +139,7 @@ type TooltipLabelProps = {
|
|||||||
|
|
||||||
const TooltipLabel = ({ name, source, installJob }: TooltipLabelProps) => {
|
const TooltipLabel = ({ name, source, installJob }: TooltipLabelProps) => {
|
||||||
const progressString = useMemo(() => {
|
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 '';
|
||||||
}
|
}
|
||||||
return `${formatBytes(installJob.bytes)} / ${formatBytes(installJob.total_bytes)}`;
|
return `${formatBytes(installJob.bytes)} / ${formatBytes(installJob.total_bytes)}`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user